workarea now copies the zlib directory to the work area so changes

during configure and make don't affect the original.  correspondingly,
the distclean target in the generated root Makefile no longer runs
distclean in zlib.

original commit: e7436f657a54a2871519e887e485f53fbed2eded
This commit is contained in:
dybvig 2016-05-02 22:21:13 -04:00
parent d3f92f7b9b
commit 37c6873262
2 changed files with 8 additions and 2 deletions

View File

@ -32,6 +32,5 @@ clean:
distclean:
rm -rf $(workarea)
(cd zlib ; make distclean)
rm -f Makefile
rm -f Make.out

View File

@ -128,13 +128,20 @@ workdir $W/mats
(cd $W/mats; workln ../../mats/Mf-base Mf-base)
(cd $W/mats; workln ../../mats/Mf-exobj Mf-exobj)
for dir in `echo zlib examples unicode` ; do
for dir in `echo examples unicode` ; do
workdir $W/$dir
for file in `(cd $dir ; echo *)` ; do
(cd $W/$dir ; workln ../../$dir/$file $file)
done
done
# deep copy submodules where builds occur so changes don't propagate through symlinks
for dir in `echo zlib` ; do
if [ ! -e $W/$dir ] ; then
/bin/cp -R $dir $W/$dir
fi
done
workdir $W/boot
workdir $W/boot/$M
(cd $W/boot/$M; workln ../../../boot/$M/scheme.h scheme.h)