diff options
author | Christoph Lohmann <20h@r-36.net> | 2019-07-24 15:04:40 +0200 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-07-24 14:21:05 +0100 |
commit | 5cfc45336702f9edb4e1c65890157e7ccdafd482 (patch) | |
tree | 17f0762cc7cb120b049b437157ccf155a94e8fdc /Makefile | |
parent | 77cefcf490d76f31fcac004debd4626e4af73545 (diff) |
Add install target to Makefile. Fix manpath.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -18,3 +18,19 @@ options: gramscii: $(SRC) $(INCLUDES) $(CC) $(CFLAGS) -o $@ $(SRC) +install: all + @echo installing executable to ${DESTDIR}${BINDIR} + @mkdir -p "${DESTDIR}${BINDIR}" + @cp -f ${NAME} "${DESTDIR}${BINDIR}" + @chmod 755 "${DESTDIR}${BINDIR}/${NAME}" + @echo installing manpage to "${DESTDIR}${MANDIR}/man1" + @mkdir -p "${DESTDIR}${MANDIR}/man1" + @cp -f ${NAME}.1 "${DESTDIR}${MANDIR}/man1" + @chmod 644 "${DESTDIR}${MANDIR}/man1/${NAME}.1" + +uninstall: + @echo removing executable file from ${DESTDIR}${BINDIR} + @rm -f "${DESTDIR}${BINDIR}/${NAME}" + @echo removing manpage from "${DESTDIR}${MANDIR}" + @rm -f "${DESTDIR}${MANDIR}/man1/${NAME}.1" + |