Browse Source

rebuild if common files changed

master
Guillaume Castagnino 7 months ago
parent
commit
51cc6de129
  1. 5
      Makefile

5
Makefile

@ -2,7 +2,8 @@ PRIVKEY = tools/testkey.pk8
PUBKEY = tools/testkey.x509.pem
ZIPS_DIRS = $(wildcard dist-*)
FILES_COMMON = $(shell find META-INF -type f)
FILES_COMMON_ZIP = $(shell find META-INF -type f)
FILES_COMMON = $(FILES_COMMON_ZIP) $(wildcard common/*)
.SECONDEXPANSION:
.PHONY: $(ZIPS_DIRS:dist-%=clean-%)
@ -23,7 +24,7 @@ $(ZIPS_DIRS:dist-%=cm-custom-%-signed.zip): cm-custom-%-signed.zip : cm-custom-%
# build target
$(ZIPS_DIRS:dist-%=cm-custom-%.zip): cm-custom-%.zip : $(FILES_COMMON) $$(shell find dist-$$* -type f)
zip $@ $(FILES_COMMON)
zip $@ $(FILES_COMMON_ZIP)
rm -rf build-$*
cp -a dist-$* build-$*
cd build-$* && \

Loading…
Cancel
Save