diff options
author | wosch <wosch@FreeBSD.org> | 1996-10-27 12:44:44 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1996-10-27 12:44:44 +0000 |
commit | 5e5384dadc51c083f793636ed6c8c929b1979ac2 (patch) | |
tree | 15d80fb3cce889622997478fc99105b51b883eb2 | |
parent | 445161a90059a82678580598a8b93259c815b9fb (diff) | |
download | FreeBSD-src-5e5384dadc51c083f793636ed6c8c929b1979ac2.zip FreeBSD-src-5e5384dadc51c083f793636ed6c8c929b1979ac2.tar.gz |
(reverse) sync with src/lib/libtcl/Makefile rev 1.9
>Do not make symbolic links from obj directory into source tree,
>it may break `make reinstall'. Use cp(1).
>
>Simplify Makefile.
Requested by: Peter
-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 3715947..29c035d 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 |