~singpolyma/post-part

ref: aa897ccbf0cdca6f78ac1a6854cfa568ecb543e7 post-part/Makefile -rw-r--r-- 2.8 KiB
aa897ccbStephen Paul Weber slim-lint 1 year, 1 month 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: all entr

all: \
	index.html index.css index.js \
	QVtq/index.html \
	interactive/index.html interactive/index.css interactive/index.js \
	window/NsD0/index.html \
	window/Vfqb/index.html \
	window/m39N/index.html \
	window/ImgX/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

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

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 window.js assets/windowOneTranscript.md assets/windowOneCredits.md
	mkdir -p window/NsD0
	/usr/share/doc/ruby-slim/examples/slimrb -l '{ "num": "One", "location": "Ambrosia Corner Bakery", "sponsors": ["ambrosia", "cotd", "breastfeeding-buddies"] }' -p window.slim > $@

window/Vfqb/index.html: window.slim Makefile window.js assets/windowTwoTranscript.md assets/windowTwoCredits.md
	mkdir -p window/Vfqb
	/usr/share/doc/ruby-slim/examples/slimrb -l '{ "num": "Two", "location": "Encompass Health & Wellness", "sponsors": ["AWB", "encompass", "cpmt", "lisette", "cotd"] }' -p window.slim > $@

window/m39N/index.html: window.slim Makefile window.js assets/windowThreeTranscript.md assets/windowThreeCredits.md
	mkdir -p window/m39N
	/usr/share/doc/ruby-slim/examples/slimrb -l '{ "num": "Three", "location": "Benton & Charles Parking Garage", "sponsors": ["cotd", "CityofKitchener", "shore"] }' -p window.slim > $@

window/ImgX/index.html: window.slim Makefile window.js assets/windowFourTranscript.md assets/windowFourCredits.md
	mkdir -p window/ImgX
	/usr/share/doc/ruby-slim/examples/slimrb -l '{ "num": "Four", "location": "Schneider Haus National Historic Site", "sponsors": ["AWB", "cotd", "schneiderhaus"] }' -p window.slim > $@


window.js: Window.purs packages.dhall spago.dhall
	spago bundle-app -u-c --main Window --to window.js

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