aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-05-06 01:58:49 +0200
committerTeddy Wing2020-05-06 01:58:49 +0200
commit175cd65ca3fa906ab3d9b663ae932b7d01f071a5 (patch)
tree3f2296783329f7bd4d1397a8bec568bc67a77643
parent1970a744ef186ae136e63d534314bc45a9a4f621 (diff)
downloadnetflix-immersive-175cd65ca3fa906ab3d9b663ae932b7d01f071a5.tar.bz2
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.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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