diff --git a/Makefile b/Makefile index 5506bce..5a0aee4 100644 --- a/Makefile +++ b/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-$* && \