Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/notes - Explicitly reference "install" as "${.CURDIR...
details: https://anonhg.NetBSD.org/src/rev/c01ac68d4890
branches: trunk
changeset: 534202:c01ac68d4890
user: lukem <lukem%NetBSD.org@localhost>
date: Sat Jul 20 06:59:19 2002 +0000
description:
- Explicitly reference "install" as "${.CURDIR}/install" as our <bsd.own.mk>
does a ".PHONY" on "install", and this prevents .PATH lookups working for
that target, so "make" unnecessarily considered the files out of date and
rebuilt them every time. (make(1) needs a .NOTPHONY)
- Separate out the TOC dependencies so that a given ${TARG}.type only
depends upon the appropriate ${TARGET}.type.toc. Prevents unnecessary
rebuilding of all the TOCs when you're only generating one target type.
- Remove *.toc.tmp in cleannotes.
diffstat:
distrib/notes/Makefile.inc | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diffs (73 lines):
diff -r df1b2cce62aa -r c01ac68d4890 distrib/notes/Makefile.inc
--- a/distrib/notes/Makefile.inc Sat Jul 20 06:44:45 2002 +0000
+++ b/distrib/notes/Makefile.inc Sat Jul 20 06:59:19 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.28 2002/06/16 00:30:23 wiz Exp $
+# $NetBSD: Makefile.inc,v 1.29 2002/07/20 06:59:19 lukem Exp $
#
# Ross Harvey <ross%netbsd.org@localhost>
@@ -16,9 +16,9 @@
TARGS= ${TARG}.ps ${TARG}.txt ${TARG}.html ${TARG}.more
TOCS= ${TARG}.PostScript.toc ${TARG}.ASCII.toc ${TARG}.HTML.toc \
${TARG}.more.toc
-SRCS= ${MAIN} whatis contents hardware xfer prep install\
- upgrade donations legal.common legal postinstall ../Makefile.inc\
- ${MERGED_SRCS}
+SRCS= ${MAIN} whatis contents hardware xfer prep ${.CURDIR}/install \
+ upgrade donations legal.common legal postinstall \
+ ${.CURDIR}/../Makefile.inc ${MERGED_SRCS}
PRESET= ${GFLAGS} -dM=${M} -dV=${DISTRIBVER} -d.CURDIR=${.CURDIR} -r${M}=1
@@ -39,24 +39,25 @@
all: ${TARGS}
.if ${MKTOCS} != "no"
- TOCDEPS = ${TOCS}
-.else
- TOCDEPS =
+TOC.ps= ${TOCS:M*.PostScript.*}
+TOC.txt= ${TOCS:M*.ASCII.*}
+TOC.html= ${TOCS:M*.HTML.*}
+TOC.more= ${TOCS:M*.more.*}
.endif
-${TARG}.ps: ${SRCS} ${TOCDEPS}
+${TARG}.ps: ${SRCS} ${TOC.ps}
${GROFF} ${ARGS_PS} -mdoc ${MAIN} > $@
${TARG}.pdf: ${TARG}.ps
ps2pdf ${TARG}.ps $@
-${TARG}.txt: ${SRCS} ${TOCDEPS}
+${TARG}.txt: ${SRCS} ${TOC.txt}
${GROFF} ${ARGS_TXT} -mdoc ${MAIN} > $@
-${TARG}.html: ${SRCS} ${TOCDEPS}
+${TARG}.html: ${SRCS} ${TOC.html}
${GROFF} ${ARGS_HTML} -mdoc2html ${MAIN} > $@
-${TARG}.more: ${SRCS} ${TOCDEPS}
+${TARG}.more: ${SRCS} ${TOC.more}
${GROFF} ${ARGS_MORE} -mdoc ${MAIN} > $@
TOCPROC= 2>&1 >/dev/null |\
@@ -80,8 +81,6 @@
${GROFF} -dTOC=1 ${ARGS_HTML} -mdoc ${MAIN} ${TOCPROC} > $@.tmp
mv -f $@.tmp $@
-# needs to be created twice to take into account the space taken
-# by the TOC itself
${TARG}.more.toc: ${SRCS}
${GROFF} -dTOC=1 ${ARGS_MORE} -mdoc ${MAIN} ${TOCPROC} > $@.tmp
mv -f $@.tmp $@
@@ -94,6 +93,7 @@
.PATH: ${.CURDIR}/../common
cleannotes:
- rm -f [Ee]rrs mklog core *.core ${TARGS} ${TOCS}
+ rm -f [Ee]rrs mklog core *.core ${TARGS} ${TOCS} \
+ ${TOCS:S/.toc$/.toc.tmp/g}
clean cleandir distclean: cleannotes
Home |
Main Index |
Thread Index |
Old Index