mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
avoid needless npm install invocation
This commit is contained in:
parent
28a6755c75
commit
0691cbf0e2
1 changed files with 4 additions and 5 deletions
|
@ -20,10 +20,6 @@ $(shell mkdir -p .build)
|
|||
PHONY: all
|
||||
all: check
|
||||
|
||||
.build/npm: package.json
|
||||
npm i
|
||||
@touch $@
|
||||
|
||||
PROTODEPS := ../proto/backend.proto ../proto/fluent.proto
|
||||
BUILDDEPS := .build/npm webpack.config.js
|
||||
|
||||
|
@ -42,10 +38,13 @@ PHONY: develop
|
|||
develop: .build/build
|
||||
|
||||
.build/build: .build/proto $(BUILDDEPS) $(wildcard src/*/*.svelte src/*/*.ts)
|
||||
npm i
|
||||
npm run build
|
||||
@touch $@
|
||||
|
||||
.build/npm: package.json package-lock.json
|
||||
npm i
|
||||
touch $@
|
||||
|
||||
.PHONY: check
|
||||
check: .build/build
|
||||
npm run check
|
||||
|
|
Loading…
Reference in a new issue