Makefile: Run npm install when necessary
Also mark phony targets as such.
This commit is contained in:
parent
baf392e7e8
commit
c99c9e2d38
2 changed files with 8 additions and 4 deletions
7
Makefile
7
Makefile
|
|
@ -1,6 +1,6 @@
|
|||
PACKAGE_NAME := $(shell python3 -c "import json; print(json.load(open('package.json'))['name'])")
|
||||
|
||||
all:
|
||||
all: node_modules/react-lite
|
||||
NODE_ENV=$(NODE_ENV) npm run build
|
||||
|
||||
clean:
|
||||
|
|
@ -40,3 +40,8 @@ rpm: dist-gzip
|
|||
find `pwd`/output -name '*.rpm' -printf '%f\n' -exec mv {} . \;
|
||||
rm -r "`pwd`/rpmbuild"
|
||||
rm -r "`pwd`/output" "`pwd`/build"
|
||||
|
||||
node_modules/react-lite:
|
||||
npm install
|
||||
|
||||
.PHONY: all clean install install-only dist-gzip srpm rpm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue