commit 20bb22bd64951a022d130faf50134e5bc4f2e2cf
parent 92fa0fdc483aa040f75eb715992ae7a76aa0ed60
Author: Yuval Langer <yuvallangerontheroad@gmail.com>
Date: Fri, 27 Oct 2023 10:41:11 +0000
Add "clean" and make "entr" depend on "all".
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,12 +1,15 @@
spock_runtime = pages/spock-runtime-debug-min.js pages/spock-runtime-debug.js \
pages/spock-runtime-min.js pages/spock-runtime.js
-.PHONY: upload all entr
+.PHONY: upload all entr clean
all: pages/main.js $(spock_runtime)
chicken-spock main.scm -o pages/main.js
-$(spock_runtime) :
+clean:
+ rm pages/*js
+
+$(spock_runtime):
mkdir -p pages && cp `chicken-spock -library-path`/spock-runtime* pages/
pages/main.js: main.scm
@@ -20,5 +23,5 @@ upload: pages/main.js $(spock_runtime)
git push
git checkout master
-entr:
+entr: all
ls main.scm | entr -s 'make pages/main.js'