cvs commit: hugs98 RPM.mk Defs.mk Makefile
Alastair Reid
alastair@reid-consulting-uk.ltd.uk
27 Aug 2002 11:59:59 +0100
> Start to gussy up Makefile to start to incorporate some of the
> knowledge necessary to build hugs in this modern world ;-)
[Guessing at where these changes are heading...]
btw It's probably not immediately obvious but the existing Makefile is
compatible with non-GNU makes including Microsoft's nmake.
It's a pain in the ass doing this but some of the things to avoid are:
-include
include
This is part of why we use @MKINSTALL@ and autoconf to include
MkInstall.in into the file. Another reason is that it avoids
providing targets that have no hope of working on particular
platforms.
$(wildcard *.c)
gcc -M
OTOH, if you wanted to add a script to generate dependencies or
lists of files on your machine and these were automatically
included in the distributed Makefile, that would be fine.
${FOO}
$(FOO) is more portable
This is pretty important - there are still machines out there that
lack gnumake. Even those that have it might have it under gmake so we
get a bug report and we send back one of those messages with 2 or 3
things to try.
--
Alastair