On 11/19/2012 12:51 AM, NightStrike wrote: > If you include src/more/Makefile.am into src/Makefile.am (a perfectly > valid thing to do), you will be unpleasantly surprised that > src/more/Makefile.am has to actually know where it is in the source > tree. It needs lines like this: > > prog_SOURCES += more/file3.c more/file4.c > > and **NOT** this: > > prog_SOURCES += file3.c file4.c > > > It's really annoying. It means that renaming a directory is reaaaaaaly hard.
You can reduce the pain by using variables: more = more prog_SOURCES += ${more}/file3.c ${more}/file4.c so that a rename now only has to touch the 'more =' line, rather than every use. -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature