From 8686ea7f3f2eb192a58bfae50dcbd959124b03ff Mon Sep 17 00:00:00 2001 From: Ricardo Mones Date: Wed, 31 Aug 2016 09:00:28 +0200 Subject: [PATCH] Can build manpage separately --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fee04a6..a8fc289 100644 --- a/Makefile +++ b/Makefile @@ -24,12 +24,14 @@ ICONRES = 64 128 all: build -build: +build: ${NAME}.1 -mkdir build sed -e "s,@PREFIX@,${PREFIX},;s,@LIBDIR@,${LIBDIR},;s,@VERSION@,${VERSION},;s,@DATADIR@,${DATADIR}," < ${NAME} > build/${NAME} - pod2man --release ${VERSION} -c '' ${NAME}.pod > build/${NAME}.1 + cp -p $< build/$< ${MAKE} -C po build - + +${NAME}.1: ${NAME}.pod + pod2man --release ${VERSION} -c '' $< > $@ install: all install-dirs install-icons install -m 0755 build/${NAME} ${DESTDIR}${BINDIR} @@ -76,6 +78,7 @@ dist: && rm -rf ${NAME}-${VERSION} clean-build: + rm -f ${NAME}.1 rm -rf build clean: clean-build -- 2.25.1