automake vs. GNU make
Posted Feb 7, 2008 5:18 UTC (Thu) by stevenj
In reply to: automake vs. GNU make
Parent article: LCA: Disintermediating distributions
That's clear enough. Yes, using foo/main.c and bar/main.c in the Makefile rules will clearly work (unless you have one of the rare compilers that doesn't support -c -o, although you can hack around that with enough effort I suppose).
It seems a bit ugly to me, though, that your subdirectory Makefiles (to be included) must be written differently depending on the name of the directory they are in. The analogous thing in a programming language would be, if you had a subroutine foo(), to require that all local variables be named with a "foo_" prefix.
to post comments)