Move CLEANDIRS within the target conditional.

Use .ORDER to attempt to catch a build race that had been lingering
since reconnecting hardware.html to the build.

Preemptive pointyhat in case things get worse:	gjb
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2018-09-25 17:54:02 +00:00
parent 34be292177
commit a4c5a79fd5
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=52300

View file

@ -21,8 +21,6 @@ FORMATS?= html txt
INSTALL_COMPRESSED?= gz
INSTALL_ONLY_COMPRESSED=
CLEANDIRS+= ${.CURDIR}/svn.*
.if ${.TARGET:M${DOC}.html}
MAN4TMP!= ${MKTEMP} -d ${.CURDIR}/svn.XXXXXXXX
MAN4DIR= ${MAN4TMP}
@ -35,7 +33,9 @@ hardware.parsed.xml: dev-auto.ent man4-rmsrc
dev-auto.ent: man4-src-checkout
${PERL} ${MAN2HWNOTES_CMD} ${MAN2HWNOTES_FLAGS} -a ${ARCHLIST} -o ${.TARGET} ${MAN4PAGES} || (rm -f ${.TARGET})
CLEANFILES+= dev-auto.ent
CLEANDIRS+= ${.CURDIR}/svn.*
.ORDER: man4-rmsrc man4-src-checkout
man4-src-checkout:
mkdir -p ${MAN4TMP}
${SVN} co svn://svn.freebsd.org/base/${SRCBRANCH}/share/man/man4 \