summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2010-02-20 13:43:31 +0000
committerjoerg <joerg@NetBSD.org>2010-02-20 13:43:31 +0000
commit2c23e1b1136488b1f2cd1812263d0117f84dfd73 (patch)
treecab3aa3cf1dc9936013dd5702a8a9ddfd70cc952 /tools
parent1a101ef360c7210759cb98ffcfa8faa87b5e692f (diff)
Add intermediate files to CLEANFILES. Explicitly include bsd.sys.mk to
ensure that HOST_SH is set, even when e.g. cleandir is used. Noticed by Nicolas Joly.
Diffstat (limited to 'tools')
-rw-r--r--tools/mandoc/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/mandoc/Makefile b/tools/mandoc/Makefile
index 6d0507fc9f0..fbfb643a8b2 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 <bsd.own.mk>
+.include <bsd.sys.mk>
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; \