From 0a7a0bfb5943c576f9e490372ea5d70dce0139de Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 18 Jul 2018 10:49:15 +0200 Subject: [PATCH] Fix Makefile dependencies for directories in src/ Our release tarballs only contain files, not their containing directories, due to `git ls-files`. tar creates these directories on the fly on unpack, with a current timestamp instead of an archived one. This causes directories in src/ to be newer than dist/ and thus a `make` will try to rebuild the webpack. This breaks RPM builds. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2082c2b..0cead4b 100644 --- a/Makefile +++ b/Makefile @@ -62,7 +62,7 @@ dist/po.%.js: po/%.po $(NODE_MODULES_TEST) %.spec: %.spec.in sed -e 's/@VERSION@/$(VERSION)/g' $< > $@ -$(WEBPACK_TEST): $(NODE_MODULES_TEST) $(wildcard src/*) package.json webpack.config.js $(patsubst %,dist/po.%.js,$(LINGUAS)) +$(WEBPACK_TEST): $(NODE_MODULES_TEST) $(shell find src/ -type f) package.json webpack.config.js $(patsubst %,dist/po.%.js,$(LINGUAS)) NODE_ENV=$(NODE_ENV) npm run build clean: