diff options
author | drebs <drebs@leap.se> | 2014-03-12 10:49:57 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2014-03-13 11:52:28 -0300 |
commit | e8de1db4a667fab1525c78847d7b672072caeba2 (patch) | |
tree | ac0490485742237ace4e5b0d34e59fcf8c0c07d4 /Makefile | |
parent | 10df7fe9c707597da323915e6e415072f099418f (diff) |
Reorder makefile targets.
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -33,6 +33,15 @@ endif endif endif + +# main rule +all: clean $(TARGET) + + +#----------------------------------------------------------------------------- +# debhelper targets +#----------------------------------------------------------------------------- + XPI_CONTENTS:=$(shell find chrome -name "*.html" -o -name "*.xhtml" -o -name "*.css" -o -name "*.png" -o -name "*.gif" -o -name "*.js" -o -name "*.jsm" -o -name "*.dtd" -o -name "*.xul" -o -name "messages" -o -name "*.properties") chrome.manifest install.rdf COPYING bitmask.xpi: $(XPI_CONTENTS) @@ -41,10 +50,10 @@ bitmask.xpi: $(XPI_CONTENTS) xpi_release: ln -s $(XPINAME) $(PKGNAME) -# main rule -all: clean $(TARGET) -# main target: .xpi file +#----------------------------------------------------------------------------- +# unsigned XPI file +#----------------------------------------------------------------------------- $(TARGET): clean install.rdf mkdir -p $(TEMPDIR) @@ -55,7 +64,12 @@ $(TARGET): clean install.rdf rm -rf $(TEMPDIR) (cd build/ && sha512sum $(PKGNAME) > SHA512SUMS && gpg -a --default-key $(DEFAULTKEY) --detach-sign SHA512SUMS) -signed: clean + +#----------------------------------------------------------------------------- +# signed XPI file +#----------------------------------------------------------------------------- + +signed: clean install.rdf mkdir -p $(TEMPDIR) mkdir -p `dirname $@` cp -r $(PREFIX)/{$(FILES_TO_PACKAGE)} $(TEMPDIR)/ @@ -79,4 +93,5 @@ debian-package: install.rdf: install.rdf.template Changelog sed 's/__VERSION__/$(VERSION)/' < $< > $@ + .PHONY: all clean signed |