a93ea220fc
* 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".
18 lines
444 B
Makefile
18 lines
444 B
Makefile
# $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 \
|
|
mouse.c util.c wsconsctl.c
|
|
MAN= wsconsctl.8
|
|
|
|
YHEADER= 1
|
|
CPPFLAGS+= -I. -I${.CURDIR}
|
|
DPSRCS+= keysym.h
|
|
CLEANFILES+= keysym.h
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
keysym.h: mkkeysym.sh ${DESTDIR}/usr/include/dev/wscons/wsksymdef.h
|
|
sh ${.CURDIR}/mkkeysym.sh \
|
|
${DESTDIR}/usr/include/dev/wscons/wsksymdef.h > keysym.h
|