Makefile construction cleanup

Update the help text in setup.sh.  When building with a hints file from TOP,
the path to the hints file should start from TOP (instead of "hints/foo").
Make the notes in the generated makefiles consistent as to case.
This commit is contained in:
keni
2011-12-27 00:34:52 +00:00
parent 4856f00479
commit 1ef7cec6bd
2 changed files with 20 additions and 14 deletions

View File

@@ -9,20 +9,25 @@
# e.g.:
# sh setup.sh
# or
# sh setup.sh hints/macosx10.5
# sh setup.sh hints/macosx10.5 (from sys/unix)
# or
# sh setup.sh sys/unix/hints/macosx10.5 (from top)
# Were we started from the top level? Cope.
if [ -f sys/unix/Makefile.top ]; then cd sys/unix; fi
prefix=.
if [ -f sys/unix/Makefile.top ]; then cd sys/unix; prefix=../..; fi
case "x$1" in
x) hints=/dev/null
hfile=/dev/null
;;
*) hints=$1
*) hints=$prefix/$1
hfile=$1
;;
esac
/bin/sh ./mkmkfile.sh Makefile.top TOP ../../Makefile $hints
/bin/sh ./mkmkfile.sh Makefile.dat DAT ../../dat/Makefile $hints
/bin/sh ./mkmkfile.sh Makefile.doc DOC ../../doc/Makefile $hints
/bin/sh ./mkmkfile.sh Makefile.src SRC ../../src/Makefile $hints
/bin/sh ./mkmkfile.sh Makefile.utl UTL ../../util/Makefile $hints
/bin/sh ./mkmkfile.sh Makefile.top TOP ../../Makefile $hints $hfile
/bin/sh ./mkmkfile.sh Makefile.dat DAT ../../dat/Makefile $hints $hfile
/bin/sh ./mkmkfile.sh Makefile.doc DOC ../../doc/Makefile $hints $hfile
/bin/sh ./mkmkfile.sh Makefile.src SRC ../../src/Makefile $hints $hfile
/bin/sh ./mkmkfile.sh Makefile.utl UTL ../../util/Makefile $hints $hfile