From 81b6900cf6a6c4300a1b6790218b7a357a4cf0b9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 27 Jun 2020 21:10:28 +1000 Subject: [PATCH] avoid needless npm install invocation --- ts/Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ts/Makefile b/ts/Makefile index 657aeeac3..96444a900 100644 --- a/ts/Makefile +++ b/ts/Makefile @@ -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