From 51202440089bf6f6a5f32542313004d19fca95b9 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 8 Jul 2022 19:01:43 +0530 Subject: add Makefile --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3