Ralf Hemmecke <[EMAIL PROTECTED]> writes: | Dear Gaby, | | 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. :-( | | Sometime back you said you wanted to include automake into the build | process. Do you still have some plans for it? | | Ralf
In OpenAxiom, nobody modifies src/Makefile.in directly. Rather, configure.ac.pamphlet is modified and then ./build-setup.sh is run (in the toplevel directory) to automatically update what needs to be updated. In you add a directory to src/ then you have to say when you want it to be built -- for example, lisp/ is built before interp/ and algebra/. Note also that nobody is expected to directly modify SUBDIRS, because it gets its value as computed by `configure' -- the configure-time value of `axiom_src_subdirs'. Just putting the directory in axiom_src_subdirs is not enough: There is not reason to believe that it is going to build `at the right time' if no further information is provided (especially with parallel builds). axiom_src_all is the list of src/ `toplevel' targets that say what need to be built for a given platform -- for example, on Windows, not everything is built. It is a mistake to modify it directly. Rather its modification should be done through `configure' -- for example, I suspect you want to test whether user really wanted to have the aldor interface built, or whether the aldor compiler is there, etc. The all- targets are logical, not necessarily in one-to-one correspondance with directory names. Yes, Automake should automate some parts of the Makefiles (already factorized for the most part in config/var-def.mk and config/setup-dep.mk). But you would still need to say when you want some directories to be built -- which is almost all you need to do with the current imperfect build machinery. -- Gaby ------------------------------------------------------------------------- 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