I now don't seem to be able to reproduce the -DNOCLEAN buildworld

breakage with ioctl.c.  The .depend file should track dependencies
just fine, and the worst we can have is to miss new ioctls.

But I still think it's a good idea to have -DNOCLEAN build produce
the same ioctl.c as it would without -DNOCLEAN.

Prodded for a long time by:	bde
This commit is contained in:
Ruslan Ermilov 2002-04-11 14:49:32 +00:00
parent 0445498680
commit b2490f915f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94432
3 changed files with 5 additions and 9 deletions

View File

@ -246,6 +246,10 @@ buildworld:
@echo "--------------------------------------------------------------"
.if !defined(NOCLEAN)
rm -rf ${WORLDTMP}
.else
# XXX - These two can depend on any header file.
rm -f ${OBJTREE}${.CURDIR}/usr.bin/kdump/ioctl.c
rm -f ${OBJTREE}${.CURDIR}/usr.bin/truss/ioctl.c
.endif
.for _dir in ${USRDIRS}
mkdir -p ${WORLDTMP}/${_dir}

View File

@ -7,11 +7,7 @@ SRCS= kdump.c ioctl.c subr.c
.PATH: ${.CURDIR}/../ktrace
CLEANFILES+=ioctl.c
.if make(depend)
ioctl.c: .PHONY
.else
ioctl.c: mkioctls
.endif
sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
.include <bsd.prog.mk>

View File

@ -28,11 +28,7 @@ syscalls.h: syscalls.master
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
${.CURDIR}/i386.conf
.if make(depend)
ioctl.c: .PHONY
.else
ioctl.c: ${.CURDIR}/../kdump/mkioctls
.endif
ioctl.c: ${.CURDIR}/../kdump/mkioctls
sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
.include <bsd.prog.mk>