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.
This commit is contained in:
parent
1a101ef360
commit
2c23e1b113
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user