diff options
author | Jesús <heckyel@hyperbola.info> | 2019-08-16 15:32:44 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-08-16 15:32:44 -0500 |
commit | d9bb0f1bef679beef8c9128329bd0d331037e13e (patch) | |
tree | 1262e28592dc688e8b9a0972ccd9b583b9fd5cdf | |
parent | 4f91ff84d2b07eb355138a6297cc2cb82da55e4c (diff) | |
download | ematrix-d9bb0f1bef679beef8c9128329bd0d331037e13e.tar.lz ematrix-d9bb0f1bef679beef8c9128329bd0d331037e13e.tar.xz ematrix-d9bb0f1bef679beef8c9128329bd0d331037e13e.zip |
improve Makefile
-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) |