Skip to content

Commit

Permalink
Rebuild XPI when any of the files in it change
Browse files Browse the repository at this point in the history
  • Loading branch information
jikamens committed Feb 26, 2018
1 parent cb1edbd commit 5e05bf6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
keyconfig.xpi:
ZIPFILES=install.rdf chrome.manifest README.md icon.png icon64.png defaults \
components content locale skin
DEPFILES=$(shell find $(ZIPFILES) -type f -print)

keyconfig.xpi: $(DEPFILES)
rm -f $@.tmp
zip -r $@.tmp install.rdf chrome.manifest README.md icon.png icon64.png defaults components content locale skin
zip -r $@.tmp $(ZIPFILES)
mv -f $@.tmp $@

clean: ; -rm -rf keyconfig.xpi
Expand Down

0 comments on commit 5e05bf6

Please sign in to comment.