~singpolyma/post-part

ref: 25de19898cf773761d48d3f38fbadfd2864d2dba post-part/Makefile -rw-r--r-- 1.4 KiB
25de1989Stephen Paul Weber homepage updates 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.PHONY: all entr

all: \
	index.html index.css index.js \
	interactive/index.html interactive/index.css interactive/index.js \
	window/NsD0/index.html \
	credits/index.html

entr:
	( echo Makefile; find -name '*.slim' -o -name '*.scss' -o -name '*.purs' -o -name '*.dhall'; find assets/ ) | entr make

index.html: index.slim assets/paras.txt
	/usr/share/doc/ruby-slim/examples/slimrb -p index.slim > $@

index.css: index.scss _font-face.scss
	sassc -Mt expanded index.scss $@

index.js: Home.purs packages.dhall spago.dhall
	spago bundle-app -u-c --main Home --to index.js

interactive/index.html: interactive/index.slim assets/paras.txt assets/audio/transcripts.txt
	/usr/share/doc/ruby-slim/examples/slimrb -p interactive/index.slim > $@

interactive/index.css: interactive/index.scss _font-face.scss
	sassc -Mt expanded interactive/index.scss $@

interactive/index.js: interactive/Interactive.purs packages.dhall spago.dhall
	spago bundle-app -u-c --main Interactive --to interactive/index.js

credits/index.html: credits/index.slim assets/paras.txt
	/usr/share/doc/ruby-slim/examples/slimrb -p credits/index.slim > $@

window/NsD0/index.html: window.slim Makefile
	mkdir -p window/NsD0
	/usr/share/doc/ruby-slim/examples/slimrb -l '{ "num": "One", "location": "Ambrosia Corner Bakery" }' -p window.slim > $@

clean:
	$(RM) -r interactive/index.html interactive/index.css interactive/index.js output/