diff --git a/tools/mandoc/Makefile b/tools/mandoc/Makefile index 6d0507fc9f0c..fbfb643a8b21 100644 --- a/tools/mandoc/Makefile +++ b/tools/mandoc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2010/02/19 23:03:02 joerg Exp $ +# $NetBSD: Makefile,v 1.5 2010/02/20 13:43:31 joerg Exp $ HOSTPROGNAME= ${_TOOL_PREFIX}mandoc HOST_SRCDIR= external/bsd/mdocml/bin/mandoc @@ -6,6 +6,7 @@ HOST_SRCDIR= external/bsd/mdocml/bin/mandoc NOMAN= # defined .include +.include NETBSD_MINOR!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -n NETBSD_OSNAME= "NetBSD ${NETBSD_MINOR}" @@ -14,6 +15,8 @@ HOST_CPPFLAGS+= -DOSNAME=${NETBSD_OSNAME:Q} -DHAVE_CONFIG_H -I. DPSRCS+= config.h +CLEANFILES+= config.log config.h + config.h: config.h.pre config.h.post rm -f config.log ( cat ${DISTDIR}/config.h.pre; \