From 51cc6de1295269e54b3b5814cf0f717c83e6a07a Mon Sep 17 00:00:00 2001 From: Guillaume Castagnino Date: Thu, 17 Jun 2021 21:42:10 +0200 Subject: [PATCH] rebuild if common files changed --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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-$* && \