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".
40 lines
818 B
Makefile
40 lines
818 B
Makefile
# $NetBSD: Makefile,v 1.5 2003/08/01 17:04:01 lukem Exp $
|
|
|
|
DOCS= xcu5
|
|
.for i in ${DOCS}
|
|
TARGS+= ${i}.ps ${i}.txt ${i}.html ${i}.more
|
|
.endfor
|
|
|
|
POST_PLAIN= -P-b -P-u -P-o -Tascii
|
|
|
|
ARGS_PS= ${GFLAGS} -dformat=PostScript
|
|
ARGS_TXT= ${GFLAGS} -dformat=ASCII ${POST_PLAIN}
|
|
ARGS_HTML= ${GFLAGS} -dformat=HTML ${POST_PLAIN} -ww
|
|
ARGS_MORE= ${GFLAGS} -dformat=more -P-h -Tascii
|
|
|
|
CLEANFILES+=${TARGS}
|
|
|
|
all: ${TARGS}
|
|
|
|
.for i in ${DOCS}
|
|
${i}.ps: ${i}
|
|
${TOOL_GROFF} ${ARGS_PS} -mdoc ${.ALLSRC} > $@
|
|
|
|
${i}.txt: ${i}
|
|
${TOOL_GROFF} ${ARGS_TXT} -mdoc ${.ALLSRC} > $@
|
|
|
|
${i}.html: ${i}
|
|
${TOOL_GROFF} ${ARGS_HTML} -mdoc2html ${.ALLSRC} > $@
|
|
|
|
${i}.more: ${i}
|
|
${TOOL_GROFF} ${ARGS_MORE} -mdoc ${.ALLSRC} > $@
|
|
.endfor
|
|
|
|
echosrcs! ${SRCS}
|
|
@echo ${.ALLSRC}
|
|
|
|
echomore!
|
|
@echo ${.OBJDIR}/${TARG}.more
|
|
|
|
.include <bsd.doc.mk>
|