diff options
Diffstat (limited to 'src/js/chrome/build.mk')
-rw-r--r-- | src/js/chrome/build.mk | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/js/chrome/build.mk b/src/js/chrome/build.mk index b93cc6f..30c07f3 100644 --- a/src/js/chrome/build.mk +++ b/src/js/chrome/build.mk @@ -2,7 +2,9 @@ # Chrome Extension ############################################################# -all: $(build-dir)/fiveui.crx +all: stage-chrome + +package: $(build-dir)/fiveui.crx chrome-dir := $(path) @@ -12,7 +14,7 @@ chrome-build := $(build-dir)/chrome # Generic Extension Parts ###################################################### # pull in the base fiveui extension -$(eval $(call stage-fiveui,$(chrome-build),$(build-dir)/fiveui.crx)) +$(eval $(call stage-fiveui,$(chrome-build),stage-chrome)) # Chrome File Staging ########################################################## @@ -36,12 +38,15 @@ $(chrome-build): | $(build-dir) # Packaging #################################################################### +.PHONY: stage-chrome +stage-chrome: $(chrome-build)/manifest.json \ + $(chrome-build)/data/background.html \ + $(chrome-build)/data/js/platform-port.js \ + $(chrome-build)/data/js/platform-background.js \ + | $(chrome-build) + # generate the executable after copying over all files -$(build-dir)/fiveui.crx: $(chrome-build)/manifest.json \ - $(chrome-build)/data/background.html \ - $(chrome-build)/data/js/platform-port.js \ - $(chrome-build)/data/js/platform-background.js \ - | $(chrome-build) +$(build-dir)/fiveui.crx: stage-chrome $(call label,MAKECRX $(call drop-prefix,$@)) ( cd $(build-dir) \ && $(topdir)/tools/bin/makecrx $(chrome-build) \ $(topdir)/fiveui.pem fiveui \ |