From b2490f915f53cdeead62da00f063f9a7853a23e7 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 11 Apr 2002 14:49:32 +0000 Subject: [PATCH] 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 --- Makefile.inc1 | 4 ++++ usr.bin/kdump/Makefile | 4 ---- usr.bin/truss/Makefile | 6 +----- 3 files changed, 5 insertions(+), 9 deletions(-) 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