summary refs log tree commit diff
path: root/www/causal.agency/Makefile
blob: 0bcea6b5f8a85eb36a0bbb11c9cacf76c5b56781 (plain) (blame)
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
WEBROOT = /usr/local/www/causal.agency

FILES = index.html scheme.png

all: ${FILES}

install: ${FILES}
	install -C -m 644 ${FILES} ${WEBROOT}

INCLUDES = scheme.css torus.html play.html catgirl.html scheme.html

index.html: index.html.in index.sed ${INCLUDES}
	sed -f index.sed index.html.in > index.html

FLAGS.torus.pty = -n -h 25
FLAGS.scheme.pty = -n -h 10
FLAGS.play.pty = -h 16

.SUFFIXES: .html .pty

.pty.html:
	shotty ${FLAGS.$<} $< > $@

scheme.css: scheme.sed
	scheme -s | sed -f scheme.sed > scheme.css

scheme.png:
	scheme -g > scheme.png

clean:
	rm -f ${FILES} ${INCLUDES}