From e45cbfa8859964def023b72478a18a7143961a7c Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 23 Mar 2012 22:33:50 +0100 Subject: [PATCH] Don't fail install if there are no manpages. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 1cf8093..9473556 100644 --- a/Makefile +++ b/Makefile @@ -145,8 +145,12 @@ endif install-manpages: build-manpages $(ECHO) installing manual pages $(QUIET)mkdir -p ${DESTDIR}${MANPREFIX}/man1 ${DESTDIR}${MANPREFIX}/man5 +ifneq "$(wildcard ${PROJECT}.1)" "" $(QUIET)install -m 644 ${PROJECT}.1 ${DESTDIR}${MANPREFIX}/man1 +endif +ifneq "$(wildcard ${PROJECT}rc.5)" "" $(QUIET)install -m 644 ${PROJECT}rc.5 ${DESTDIR}${MANPREFIX}/man5 +endif install-headers: ${PROJECT}.pc $(ECHO) installing header files