2009-09-05 16:46:41 +00:00
|
|
|
NAME=svg-edit
|
2009-10-09 19:07:52 +00:00
|
|
|
VERSION=2.4
|
|
|
|
MAKEDOCS=naturaldocs/NaturalDocs
|
2009-09-05 16:46:41 +00:00
|
|
|
PACKAGE=$(NAME)-$(VERSION)
|
|
|
|
YUI=build/yuicompressor.jar
|
|
|
|
ZIP=zip
|
|
|
|
|
|
|
|
all: release firefox opera
|
|
|
|
|
|
|
|
build/$(PACKAGE):
|
2009-10-09 19:15:18 +00:00
|
|
|
rm -rf config
|
|
|
|
mkdir config
|
2009-10-09 19:07:52 +00:00
|
|
|
$(MAKEDOCS) -i editor/ -o html docs/ -p config/
|
2009-09-05 16:46:41 +00:00
|
|
|
mkdir -p build/$(PACKAGE)
|
2009-09-05 18:52:39 +00:00
|
|
|
cp -r editor/* build/$(PACKAGE)
|
2009-09-05 16:46:41 +00:00
|
|
|
-find build/$(PACKAGE) -name .svn -type d -exec rm -rf {} \;
|
|
|
|
# minify spin button
|
|
|
|
java -jar $(YUI) build/$(PACKAGE)/spinbtn/JQuerySpinBtn.js > build/$(PACKAGE)/spinbtn/JQuerySpinBtn.min.js
|
|
|
|
# minify SVG-edit files
|
|
|
|
java -jar $(YUI) build/$(PACKAGE)/svg-editor.js > build/$(PACKAGE)/svg-editor.min.js
|
|
|
|
java -jar $(YUI) build/$(PACKAGE)/svgcanvas.js > build/$(PACKAGE)/svgcanvas.min.js
|
|
|
|
# CSS files do not work remotely
|
|
|
|
# java -jar $(YUI) build/$(PACKAGE)/spinbtn/JQuerySpinBtn.css > build/$(PACKAGE)/spinbtn/JQuerySpinBtn.min.css
|
|
|
|
# java -jar $(YUI) build/$(PACKAGE)/svg-editor.css > build/$(PACKAGE)/svg-editor.min.css
|
|
|
|
|
|
|
|
release: build/$(PACKAGE)
|
2009-09-05 18:36:44 +00:00
|
|
|
cd build ; $(ZIP) $(PACKAGE).zip -r $(PACKAGE) ; cd ..
|
2009-09-05 16:46:41 +00:00
|
|
|
|
|
|
|
firefox: build/$(PACKAGE)
|
2009-09-05 18:46:53 +00:00
|
|
|
mkdir -p build/firefox/content/editor
|
2009-09-05 18:52:39 +00:00
|
|
|
cp -r firefox-extension/* build/firefox
|
2009-09-05 18:46:53 +00:00
|
|
|
rm -rf build/firefox/content/.svn
|
2009-09-05 18:52:39 +00:00
|
|
|
cp -r build/$(PACKAGE)/* build/firefox/content/editor
|
2009-09-05 18:36:44 +00:00
|
|
|
cd build/firefox ; $(ZIP) ../$(PACKAGE).xpi -r * ; cd ../..
|
2009-09-05 16:46:41 +00:00
|
|
|
|
|
|
|
opera: build/$(PACKAGE)
|
|
|
|
mkdir -p build/opera/editor
|
2009-09-05 18:52:39 +00:00
|
|
|
cp opera-widget/* build/opera
|
|
|
|
cp -r build/$(PACKAGE)/* build/opera/editor
|
2009-09-05 18:36:44 +00:00
|
|
|
cd build/opera ; $(ZIP) ../$(PACKAGE).wgt -r * ; cd ../..
|
2009-09-05 16:46:41 +00:00
|
|
|
|
|
|
|
clean:
|
2009-10-09 19:15:18 +00:00
|
|
|
rm -rf config
|
2009-09-05 16:46:41 +00:00
|
|
|
rm -rf build/$(PACKAGE)
|
|
|
|
rm -rf build/firefox
|
|
|
|
rm -rf build/opera
|