[uw.mfcf.software] xh-makefile modifications

rblanders@watmath.waterloo.edu (Robyn Landers) (09/06/89)

Lots of changes to xh-makefile. RCS'ed.
For details, read the comments at beginning of the script (or better yet
read the whole script :-), or wait for forthcoming man pages.

Briefly, the argument <package-name> to xh-makefile is now optional.
If you give the argument then that's the package name, as always.
If the argument is not given, then
if you're cd'ed to either /usr/source/blart or /software/blart
then it assumes 'blart' is the package name.
It also has heuristics for where to look for and/or create if necessary
the Makefile-body.  If there's a source directory then the Makefile-body
goes there, otherwise it goes in the installation directory.
(If you have a Makefile-body in the installation directory and there 
exists a source directory, it will move the Makefile-body to the source
directory automatically.  For backwards compatibility.)
The Makefile always goes in the installation directory.
Messages are given if it thinks you're not doing the right thing or if
it is making assumptions for you.
One last trick - if it can't find Makefile-body in source or
installation directories it looks in current directory.