aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-07 20:58:10 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-08 15:37:54 +0200
commitb18302253c93727b28da8d128fbb204c21b62815 (patch)
tree557d473c742b57bd3101aaf512733c2c01466ec3 /Makefile
parentcd943ef6b47b00c73b3b544fb3ecb07c91511f0d (diff)
downloadem-b18302253c93727b28da8d128fbb204c21b62815.tar.gz
Add UNIX support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f9d42dd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+test.html: .unix test.em
+ export PATH=.:$$PATH; em.sh test.em | htwrap.sh -t | htindex.sh -s > test.html
+
+README.html: .unix README
+ export PATH=.:$$PATH; em.sh README | htindex.sh -s > README.html
+
+install: .unix
+ install em.sh /usr/local/bin/em
+ install htindex.sh /usr/local/bin/htindex
+ install htwrap.sh /usr/local/bin/htwrap
+ install emcollect emparse /usr/local/bin
+
+clean:
+ rm .unix
+
+.unix:
+ sed -i '1s,^#!/bin/awk,#!/usr/bin/awk,' emcollect emparse
+ @touch .unix