[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -DNOCLEAN analogue in OpenBSD
Todd C. Miller wrote:
> This is incorrect, "make build" will do a cleandir of the entire tree.
I should have looked with more attention; it was staring at me. Sorry.
Anyway, Andrew Basterfield <list@cemetary.homeunix.org> provided a patch
in private email to comment the specific line out. I've changed that
patch to implement -DNOCLEAN. This is against 3.1-stable, but should apply
cleanly to -current.
--- Makefile.orig Sun Nov 3 17:14:28 2002
+++ Makefile Sun Nov 3 20:11:10 2002
@@ -74,7 +74,9 @@
.endif
cd ${.CURDIR}/share/mk && exec ${SUDO} ${MAKE} install
cd ${.CURDIR}/include && ${MAKE} prereq && exec ${SUDO} ${MAKE} includes
+.ifndef NOCLEAN
${SUDO} ${MAKE} cleandir
+.endif
cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && \
NOMAN=1 exec ${SUDO} ${MAKE} install
cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && \
--
EOF