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.
This commit is contained in:
parent
e9635620c5
commit
0a7a0bfb59
1 changed files with 1 additions and 1 deletions
2
Makefile
2
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue