diff --git a/Makefile.inc1 b/Makefile.inc1 index 0ee092247bbe..38e2c97c360d 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -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} diff --git a/usr.bin/kdump/Makefile b/usr.bin/kdump/Makefile index ddafcc007ce7..cc7bfbe9d1ac 100644 --- a/usr.bin/kdump/Makefile +++ b/usr.bin/kdump/Makefile @@ -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 diff --git a/usr.bin/truss/Makefile b/usr.bin/truss/Makefile index 9b43792be961..679f6940a380 100644 --- a/usr.bin/truss/Makefile +++ b/usr.bin/truss/Makefile @@ -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