> since I wanted to add a new directory "aldor" to the build process, I > thought that adding it to the SUBDIRS variable (i.e to axiom_src_subdirs > in configure.ac) would be enough, but that didn't work. > > Now looking a bit deeper, I find that I also must add something like an > all-aldor target in src/Makefile.in and add 'all-aldor' to axiom_src_all > in configure.ac. > > Isn't that a bit too much, i.e., redundant? > > Shouln't src/Makefile.in be totally simple, i.e. just distribute the > work to the Makefiles in its subdirectories? > > Interestingly (and confusingly), the all-... targets in that file do not > directly correspond to subdirectories. :-( >
Since there is no 1 to 1 correspondence between Makefile targets and subdirectories the all-xxx rules are not redundant. Pragmatically, I think that current Makefile works reasonably well: there are irregularities in build process and we need some place to describe them. Currently we use small number of rules. Alternatives, like mapping everything into directories or using more generic rules seem more complicated -- we would just hide description of irregularities in different place... -- Waldek Hebisch [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ open-axiom-devel mailing list open-axiom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open-axiom-devel