diff options
-rw-r--r-- | Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -26,6 +26,16 @@ # 2) It gives some flexibility in that files can be created or deleted # freely as long as they are not part of any of these lists +VERSION := 3.0.7 + +help: + @echo 'Makefile for generate eMatrix ' + @echo ' ' + @echo 'Usage: ' + @echo ' make all generate eMatrix.xpi ' + @echo ' make clean remove eMatrix.xpi ' + @echo ' ' + DIST := dist/ ROOTMETA := bootstrap.js install.rdf chrome.manifest icon.png \ @@ -148,10 +158,10 @@ JS := $(JS1) $(JS2) $(JS3) $(JS4) all: eMatrix.xpi eMatrix.xpi: $(ROOT) $(ASSETS) $(CSS) $(IMG) $(LIB) $(LOCALE) $(JS) - @zip -r $@ $^ - @mv eMatrix.xpi $(DIST) + @install -d -m755 $(DIST)/$(VERSION) + @zip -r $(DIST)/$(VERSION)/eMatrix-$(VERSION).xpi $^ .PHONY: clean clean: - @rm -f $(DIST)/eMatrix.xpi + @rm -fr $(DIST) |