spook

A "game" for the 2023 Autumn Lisp Game Jam. Won first place! (from the bottom...)
git clone https://kaka.farm/~git/spook
Log | Files | Refs | LICENSE

Makefile (875B)


      1 # SPDX-FileCopyrightText: 2023 Yuval Langer <yuvallangerontheroad@gmail.com>
      2 #
      3 # SPDX-License-Identifier: AGPL-3.0-or-later
      4 
      5 spock_runtime = pages/spock-runtime-debug-min.js pages/spock-runtime-debug.js \
      6                 pages/spock-runtime-min.js pages/spock-runtime.js
      7 
      8 .PHONY: upload all entr clean commit-pages
      9 
     10 all: pages/main.js $(spock_runtime)
     11 	chicken-spock main.scm -o pages/main.js
     12 
     13 clean:
     14 	rm pages/*js
     15 
     16 $(spock_runtime):
     17 	mkdir -p pages && cp `chicken-spock -library-path`/spock-runtime* pages/
     18 
     19 pages/main.js: main.scm
     20 	mkdir -p pages && chicken-spock main.scm -o pages/main.js
     21 
     22 commit-pages: all
     23 	cp pages/index.html pages/index.html.new
     24 	git checkout pages
     25 	cp pages/*js .
     26 	mv pages/index.html.new index.html
     27 	git add *js *html
     28 	git commit -m f
     29 	git checkout master
     30 
     31 upload: commit-pages
     32 	git push pages
     33 
     34 entr: all
     35 	ls main.scm | entr -s 'make pages/main.js'