aboutsummaryrefslogtreecommitdiff
path: root/trypandoc/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-08-17 16:11:09 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-08-17 16:11:09 -0700
commit886cc0dd369c8975efe861d814a82b2d65343ede (patch)
tree122a21e68de171a910d41cb54f58a37e9a0bafbc /trypandoc/Makefile
parentfa0d9a28dfac2e1303dbb236a9c60ee4394eacb1 (diff)
downloadpandoc-886cc0dd369c8975efe861d814a82b2d65343ede.tar.gz
Added trypandoc flag to build trypandoc cgi executable.
Supporting files are in trypandoc/.
Diffstat (limited to 'trypandoc/Makefile')
-rw-r--r--trypandoc/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/trypandoc/Makefile b/trypandoc/Makefile
new file mode 100644
index 000000000..29942ac00
--- /dev/null
+++ b/trypandoc/Makefile
@@ -0,0 +1,14 @@
+CGIBIN=/home/website/cgi-bin
+TRYPANDOC=/home/website/html/pandoc/try/
+CGI=${CGIBIN}/trypandoc
+BIN=../dist/build/trypandoc/trypandoc
+
+install: ${CGI} ${TRYPANDOC}/index.html
+
+${TRYPANDOC}/%: %
+ cp $< $@ && chown website:www-data $@ && chmod a+r $@
+
+${CGI}: ${BIN}
+ cp $< $@ && chown website:www-data $@ && chmod a+rx $@
+
+.PHONY: install