Author: Kev <klmitch@mit.edu>
Log message:
Makefile (build system) tuning: create directories before installing into
them; detect changes to sub-Makefiles and rebuild them properly; tuning to
permit VPATH operation.
VPATH operation is a very useful tool for developers and individuals who
need to compile from the same source tree on multiple platforms; it allows
you to build the server from a directory other than your source directory.
Simplest way to do it is create your build directory, cd into it, then use
something like ../relative/path/to/ircu2.10/configure. The configure
script will build the Makefiles and necessary directories in the current
directory. Caveat: "make depend" will not work properly with VPATH for two
basic reasons: chattr.tab.c will be missing; and the dependancies generated
will be relative paths into your source directory. The latter can be
corrected by changing the -I flags fed to the gcc -MM invocation; the
former might be corrected by substituting <> for "" in ircd_string.c.
Realistically, the whole "make depend" infrastructure should probably be
rototilled, but I think I'll just move us to automake in u2.10.12.
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@522
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c