Makefile: Avoid npm dependency for building webpack

Avoid the indirection, and directly call webpack. This avoids adding an
`npm` build dependency if/when the RPM wants to rebuild the webpack
during package build.
This commit is contained in:
Martin Pitt 2021-09-08 14:20:43 +02:00 committed by Katerina Koukiou
parent 03d8324c19
commit e49b2747bc

View file

@ -55,10 +55,10 @@ update-po: po/$(PACKAGE_NAME).pot
sed -e 's/%{VERSION}/$(VERSION)/g' $< > $@
$(WEBPACK_TEST): $(NODE_MODULES_TEST) $(LIB_TEST) $(shell find src/ -type f) package.json webpack.config.js
NODE_ENV=$(NODE_ENV) npm run build
NODE_ENV=$(NODE_ENV) node_modules/.bin/webpack
watch:
NODE_ENV=$(NODE_ENV) npm run watch
NODE_ENV=$(NODE_ENV) node_modules/.bin/webpack --watch
clean:
rm -rf dist/