summary refs log tree commit diff
path: root/www/causal.agency/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-07-12 21:20:07 -0400
committerJune McEnroe <june@causal.agency>2019-07-12 21:20:07 -0400
commit847d6adeb63bc50413b89853c7eb4a1314ce5ccb (patch)
tree3dc4cad0e71a8ac6d64b6d487ca6b7c19605da49 /www/causal.agency/Makefile
parentUse -s to infer terminal size (diff)
downloadsrc-847d6adeb63bc50413b89853c7eb4a1314ce5ccb.tar.gz
src-847d6adeb63bc50413b89853c7eb4a1314ce5ccb.zip
Add new causal.agency with shotty shots
Diffstat (limited to 'www/causal.agency/Makefile')
-rw-r--r--www/causal.agency/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/www/causal.agency/Makefile b/www/causal.agency/Makefile
new file mode 100644
index 00000000..3acf7a39
--- /dev/null
+++ b/www/causal.agency/Makefile
@@ -0,0 +1,30 @@
+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
+
+index.html: index.html.in index.sed $(INCLUDES)
+	sed -f index.sed index.html.in > index.html
+
+.SUFFIXES: .html .pty
+
+.pty.html:
+	shotty $< > $@
+
+torus.html: torus.pty
+	shotty -h 25 $< > $@
+
+scheme.css: scheme.sed
+	scheme -s | sed -f scheme.sed > scheme.css
+
+scheme.png:
+	scheme -g > scheme.png
+
+clean:
+	rm -f *.html scheme.css scheme.png