commit 65e685e4778d2fda38c9729f423d49eb1a4937db parent dc767ec826d7fade8da1d0d9a11a3d01321dd005 Author: Yuval Langer <yuvallangerontheroad@gmail.com> Date: Mon, 23 Oct 2023 06:49:36 +0300 Add stuff to Makefile. Diffstat:
M | Makefile | | | 24 | ++++++++++++++++++++++-- |
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,2 +1,22 @@ -all: - chicken-spock main.scm -o main.js +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 + +all: pages/main.js $(spock_runtime) + chicken-spock main.scm -o pages/main.js + +$(spock_runtime) : + mkdir -p pages && cp `chicken-spock -library-path`/spock-runtime* pages/ + +pages/main.js: main.scm + mkdir -p pages && chicken-spock main.scm -o pages/main.js + +upload: pages/main.js $(spock_runtime) + git checkout pages + cp pages/* . + git add *js + git commit -m f + git push + rm *js + git checkout master