diff options
author | sinanmohd <pcmsinan@gmail.com> | 2023-02-17 19:59:54 +0530 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-02-18 09:39:35 +0530 |
commit | 9daa111d2a50a0b7d4c0a574f8ac3caafa7142c9 (patch) | |
tree | af7f5ce083e2af4359b6a1b7b5b51fe3c2bd130a /Makefile |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
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 |