From b845d459cb5f44271e761d4424c636994c5f6074 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Thu, 29 Dec 2011 11:57:36 +0200 Subject: install and remove the manual on install/uninstall --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 48480f1..f638b19 100644 --- a/Makefile +++ b/Makefile @@ -49,12 +49,14 @@ clean: install: all @echo installing executable file to ${DESTDIR}${PREFIX}/bin - @mkdir -p ${DESTDIR}${PREFIX}/bin - @cp -f ${WMNAME} ${DESTDIR}${PREFIX}/bin - @chmod 755 ${DESTDIR}${PREFIX}/bin/${WMNAME} + @install -Dm755 ${WMNAME} ${DESTDIR}${PREFIX}/bin/${WMNAME} + @echo installing manual page to ${DESTDIR}${MANPREFIX}/man.1 + @install -Dm644 ${WMNAME}.1 ${DESTDIR}${MANPREFIX}/man1/${WMNAME}.1 uninstall: @echo removing executable file from ${DESTDIR}${PREFIX}/bin @rm -f ${DESTDIR}${PREFIX}/bin/${WMNAME} + @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 + @rm -f ${DESTDIR}${MANPREFIX}/man1/${WMNAME}.1 .PHONY: all options clean install uninstall -- cgit v1.3.1