Makefile

changeset 1
acfb872c93a1
parent 0
80a2cf045e6a
child 2
0b6c4213f42a
--- a/Makefile	Fri Feb 07 14:38:00 2020 +0100
+++ b/Makefile	Thu Feb 13 09:46:58 2020 +0100
@@ -25,7 +25,7 @@
 MANDOC=         mandoc
 MANDOC_HTML=    -T html -O man=%N.html
 MANDOC_PDF=     -T pdf
-VERSION=        0.1.0
+VERSION=        0.2.0
 SOURCE=         paster-${VERSION}.tar.xz
 WRKDIR=         paster-${VERSION}
 
@@ -52,7 +52,8 @@
 .1.pdf .8.pdf:
 	${MANDOC} < $< ${MANDOC_PDF} > $@
 
-${MAN1HTML} ${MAN8HTML} ${MAN1PDF} ${MAN8PDF}: pre-man
+${MAN1} ${MAN8}: ${WRKDIR}
+	${MAKE} -C ${WRKDIR} paster.1 pasterd.8 pasterd-clean.8
 
 ${FILES}: templates/template.html
 
@@ -62,9 +63,6 @@
 ${WRKDIR}: ${SOURCE}
 	tar -xJf ${SOURCE}
 
-pre-man: ${WRKDIR}
-	${MAKE} -C ${WRKDIR} pasterd.8 pasterd-clean.8 paster.1
-
 site: ${OBJS} ${MAN1HTML} ${MAN1PDF} ${MAN8HTML} ${MAN8PDF}
 
 clean:

mercurial