commit 0cc597d74273d5edc9c9411ba8d070b7668ba76d
parent 7e672e9a31fd8b248373175d4b26c1b2465cc206
Author: Yuval Langer <yuvallangerontheroad@gmail.com>
Date: Fri, 27 Oct 2023 17:35:28 +0000
Split committing the pages branch and uploading.
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,7 +1,7 @@
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 clean
+.PHONY: upload all entr clean commit-pages
all: pages/main.js $(spock_runtime)
chicken-spock main.scm -o pages/main.js
@@ -15,13 +15,15 @@ $(spock_runtime):
pages/main.js: main.scm
mkdir -p pages && chicken-spock main.scm -o pages/main.js
-upload: pages/main.js $(spock_runtime)
+commit-pages: all
git checkout pages
cp pages/* .
git add *js *html
git commit -m f
- git push
git checkout master
+upload: commit-pages
+ git push pages
+
entr: all
ls main.scm | entr -s 'make pages/main.js'