diff options
| author | Wolfram Schneider <wosch@FreeBSD.org> | 1996-10-27 12:44:44 +0000 |
|---|---|---|
| committer | Wolfram Schneider <wosch@FreeBSD.org> | 1996-10-27 12:44:44 +0000 |
| commit | 1822c5e5721cac907fde8f7a74ecea1aa6c26c29 (patch) | |
| tree | 15d80fb3cce889622997478fc99105b51b883eb2 /tools | |
| parent | 95e6becc122da6660439a299f5336072736e8fbb (diff) | |
Notes
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/tools/tcl_bmake/mkMakefile.sh | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/tools/tools/tcl_bmake/mkMakefile.sh b/tools/tools/tcl_bmake/mkMakefile.sh index 3715947bfca3..29c035d7eab7 100644 --- a/tools/tools/tcl_bmake/mkMakefile.sh +++ b/tools/tools/tcl_bmake/mkMakefile.sh @@ -1,5 +1,5 @@ #! /bin/sh -# $Id: mkMakefile.sh,v 1.11 1996/09/18 14:27:44 phk Exp $ +# $Id: mkMakefile.sh,v 1.12 1996/09/20 14:12:17 bde Exp $ # # This script generates a bmake Makefile for src/lib/libtcl # @@ -40,7 +40,7 @@ echo '# # Please change src/tools/tools/tcl_bmake/mkMakefile.sh instead # # Generated by src/tools/tools/tcl_bmake/mkMakefile.sh version: -# $Id: mkMakefile.sh,v 1.11 1996/09/18 14:27:44 phk Exp $ +# $Id: mkMakefile.sh,v 1.12 1996/09/20 14:12:17 bde Exp $ # ' | tr -d '$' >> ${LIBTCL}Makefile @@ -176,15 +176,26 @@ do s/,//g ' $i | sed -n ' 1s/\\-.*//p - ' | awk ' - { - print "" - print "CLEANFILES+=\t" $1 ".3" - print $1 ".3: ${TCLDIST}/doc/" B ".3" - print "\tln -s \${.ALLSRC} \${.TARGET}" - } - ' B=`basename $i .3` >> ${LIBTCL}Makefile -done + ' | awk '{ print "TCLMAN+= " $1 ".3 " B ".3" }' B=`basename $i .3` +done >> ${LIBTCL}Makefile + +cat << 'EOF' >> ${LIBTCL}Makefile + +_tcltmp= +_tclprev= +.for _tclpage in ${TCLMAN} +.if !empty(_tclprev) +_tcltmp:= ${_tcltmp} ${_tclprev} # assign with expansion +${_tclprev}: ${TCLDIST}/doc/${_tclpage} + cp -f ${.ALLSRC} ${.TARGET} +_tclprev= +.else +_tclprev=${_tclpage} +.endif +.endfor +CLEANFILES+= ${_tcltmp} + +EOF echo ' .include <bsd.lib.mk>' >> ${LIBTCL}Makefile |
