(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
This commit is contained in:
Wolfram Schneider 1996-10-27 12:44:44 +00:00
parent 95e6becc12
commit 1822c5e572
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19205

View File

@ -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