summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..abd6a79
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+PREFIX ?= /usr/local
+BINDIR ?= ${PREFIX}/bin
+
+install:tcvt.py optcvt.sh.transformed
+ install -m755 tcvt.py "${DESTDIR}${BINDIR}/tcvt"
+ install -m755 optcvt.sh.transformed "${DESTDIR}${BINDIR}/optcvt"
+build:optcvt.sh.transformed
+clean:
+ rm -f optcvt.sh.transformed
+
+optcvt.sh.transformed:optcvt.sh
+ sed 's!^TCVT=.*!TCVT="${BINDIR}/tcvt"!' < $< > $@
+
+.PHONY:build install clean