aboutsummaryrefslogtreecommitdiff
path: root/static/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'static/Makefile')
-rw-r--r--static/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/static/Makefile b/static/Makefile
index b85422a3..1979575d 100644
--- a/static/Makefile
+++ b/static/Makefile
@@ -1,10 +1,11 @@
-.PHONY: all clean watch
+.PHONY: all install clean watch
-TARGETS := style.css smallcal.css script.out.js
+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/*)
+JS_FILES = $(TS_FILES:%.ts=%.js)
export PATH := $(shell npm bin):$(PATH)
@@ -20,15 +21,11 @@ script.out.js: $(TS_FILES)
deps.svg: $(TS_FILES)
madge --image $@ $^
-# Note that 'tsc --watch' doesn't provide the files we are using. It's
-# just here for debug.
watch:
- tmux \
- new-session "scss --watch -I. style.scss:style.css" \; \
- split-window "tsc --watch" \; \
- rename-session "calp watch" \; \
- select-layout even-vertical
+ ./make-watch
+install: all
+ install -m644 -t $(DESTDIR)/usr/share/calp/www/ $(TARGETS)
clean:
rm $(TARGETS)