diff options
| author | lukem <lukem@NetBSD.org> | 2003-08-01 17:03:41 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2003-08-01 17:03:41 +0000 |
| commit | a93ea220fcb3e34cdfdcd4d7a5d391e0b2b4f2ba (patch) | |
| tree | c9adfc000f1b3f310cf2f812f02823dbff7766ca /sbin | |
| parent | 5aa077f5cfe13c86bb3596f0e709337147ffc49c (diff) | |
Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.
* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx
* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES
* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}
* Deprecate the (short lived) DEPENDSRCS
Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.
Tested with "make -j 8 distribution" and "make distribution".
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/wsconsctl/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/wsconsctl/Makefile b/sbin/wsconsctl/Makefile index 0f2eb22def7..66330482ab5 100644 --- a/sbin/wsconsctl/Makefile +++ b/sbin/wsconsctl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2003/07/29 01:45:34 lukem Exp $ +# $NetBSD: Makefile,v 1.7 2003/08/01 17:04:00 lukem Exp $ PROG= wsconsctl SRCS= display.c keyboard.c keysym.c map_parse.y map_scan.l \ @@ -7,12 +7,11 @@ MAN= wsconsctl.8 YHEADER= 1 CPPFLAGS+= -I. -I${.CURDIR} +DPSRCS+= keysym.h CLEANFILES+= keysym.h .include <bsd.prog.mk> -${DEPENDSRCS} keysym.c: keysym.h - keysym.h: mkkeysym.sh ${DESTDIR}/usr/include/dev/wscons/wsksymdef.h sh ${.CURDIR}/mkkeysym.sh \ ${DESTDIR}/usr/include/dev/wscons/wsksymdef.h > keysym.h |
