summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2011-02-27 17:16:12 +0100
committerHelmut Grohne <helmut@subdivi.de>2011-02-27 17:16:12 +0100
commitfe155c3039c51e4a0328e4ab9aed8d5884581f2f (patch)
treea4b0c9ef01f44ad0436d0139a96601462e644008 /Makefile
parent59321add23b651220292a42e50a81d9e812cce16 (diff)
downloadtcvt-fe155c3039c51e4a0328e4ab9aed8d5884581f2f.tar.gz
added Makefile for easy installation
Diffstat (limited to 'Makefile')
-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