From 175cd65ca3fa906ab3d9b663ae932b7d01f071a5 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 6 May 2020 01:58:49 +0200 Subject: Makefile: Fix rebuild of non-index.js files Previously, if I modified any TypeScript file other than `index.ts`, Make wouldn't rebuild. Depend on all JS files in build/ to ensure the output script gets rebuilt on changes. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f438824..8e85940 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ all: build/netflix-no-skip.user.js build/%.js: src/%.ts $(TSC) -build/netflix-no-skip.user.js: build/index.js src/userscript-header.txt +build/netflix-no-skip.user.js: build/index.js build/*.js src/userscript-header.txt $(BROWSERIFY) $^ -o $@ cat src/userscript-header.txt $@ > $@.tmp -- cgit v1.2.3