diff options
author | sinanmohd <pcmsinan@gmail.com> | 2023-02-17 19:59:54 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-04-07 14:57:51 +0530 |
commit | 8660195f7918009442b649407d19806bf9a80c95 (patch) | |
tree | 5603217f365ff6e448439359d528ceaa88fb27c8 /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 |