aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorsinanmohd <pcmsinan@gmail.com>2022-07-08 19:01:43 +0530
committersinanmohd <pcmsinan@gmail.com>2022-07-08 19:01:43 +0530
commit51202440089bf6f6a5f32542313004d19fca95b9 (patch)
treecdfdec4327cdb3a712ffb48744fa1913e45930f8 /Makefile
parent76c1ee816bf9c25a01122906e6850d003d368c58 (diff)
add Makefile
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