actually add makefile :-D
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@587 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
b67871091b
commit
d86d5c3518
|
@ -0,0 +1,40 @@
|
|||
NAME=svg-edit
|
||||
VERSION=2.3
|
||||
PACKAGE=$(NAME)-$(VERSION)
|
||||
YUI=build/yuicompressor.jar
|
||||
ZIP=zip
|
||||
|
||||
all: release firefox opera
|
||||
|
||||
build/$(PACKAGE):
|
||||
mkdir -p build/$(PACKAGE)
|
||||
cp -ra editor/* build/$(PACKAGE)
|
||||
-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)
|
||||
$(ZIP) build/$(PACKAGE).zip -r build/$(PACKAGE)
|
||||
|
||||
firefox: build/$(PACKAGE)
|
||||
mkdir -p build/firefox/editor
|
||||
cp -a firefox-extension/* build/firefox
|
||||
cp -ra build/$(PACKAGE)/* build/firefox/editor
|
||||
$(ZIP) build/$(PACKAGE).xpi -r build/firefox/*
|
||||
|
||||
opera: build/$(PACKAGE)
|
||||
mkdir -p build/opera/editor
|
||||
cp -a opera-widget/* build/opera
|
||||
cp -ra build/$(PACKAGE)/* build/opera/editor
|
||||
$(ZIP) build/$(PACKAGE).wgt -r build/opera/*
|
||||
|
||||
clean:
|
||||
rm -rf build/$(PACKAGE)
|
||||
rm -rf build/firefox
|
||||
rm -rf build/opera
|
Loading…
Reference in New Issue