From 8660195f7918009442b649407d19806bf9a80c95 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 17 Feb 2023 19:59:54 +0530 Subject: initial commit --- 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..0254de2 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +PROG=soibox +PREFIX=/usr/local +BINDIR=${PREFIX}/bin +LICENSEDIR=${PREFIX}/share/licenses/soibox + +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