aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..723d8cd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+PROG=stikman
+PREFIX=/usr/local
+BINDIR=${PREFIX}/bin
+LICENSEDIR=${PREFIX}/share/licenses/stikman
+
+doc:
+ mkdir -p ${DESTDIR}${LICENSEDIR}
+ chmod 644 LICENSE
+ cp LICENSE ${DESTDIR}${LICENSEDIR}
+
+install:
+ chmod 755 ${PROG}
+ cp ${PROG} ${PROG}.bak
+ mkdir -p ${DESTDIR}${BINDIR}
+ cp ${PROG}.bak ${DESTDIR}${BINDIR}/${PROG}
+ rm ${PROG}.bak
+
+uninstall:
+ rm -f ${DESTDIR}${BINDIR}/${PROG}
+ rm -rf ${DESTDIR}${LICENSEDIR}
+
+.PHONY: install uninstall doc