aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-04-24 01:58:07 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-04-24 01:58:07 +0200
commit53112064de5f5e6b1726f9822acf6b37bef805be (patch)
tree0fda00b7cfefb9d5a961f05918408b93887cd369
parentIntroduce filename-extension procedure. (diff)
downloadcalp-53112064de5f5e6b1726f9822acf6b37bef805be.tar.gz
calp-53112064de5f5e6b1726f9822acf6b37bef805be.tar.xz
Minor dependency fixup in static/Makefile.
-rw-r--r--static/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/static/Makefile b/static/Makefile
index 1979575d..9292ed8a 100644
--- a/static/Makefile
+++ b/static/Makefile
@@ -3,8 +3,7 @@
TARGETS := style.css smallcal.css script.out.js directory-listing.css
WATCH=
-# script explicitly named, since that is our entry point
-TS_FILES = script.ts $(shell find . -type f -name \*.ts -not -path */node_modules/*)
+TS_FILES = $(shell find . -type f -name \*.ts -not -path */node_modules/*)
JS_FILES = $(TS_FILES:%.ts=%.js)
export PATH := $(shell npm bin):$(PATH)
@@ -15,7 +14,8 @@ all: $(TARGETS)
tail -n1 $< | tail -c+65 | base64 --decode | jq '.' > $@
# r!browserify --list script.ts -p tsify | xargs -L1 basename | tac
-script.out.js: $(TS_FILES)
+# script explicitly named, since that is our entry point
+script.out.js: script.ts $(TS_FILES)
browserify $< -p tsify --noImplicitAny --debug -o $@
deps.svg: $(TS_FILES)