* Sebastien REYNES wrote on Fri, Sep 05, 2008 at 04:44:54PM CEST: > Yes I have read this but I believe this solution don't answer to my > need. In fact, I must to respect this treeview from root : > > /home/devbdie/ > configure.ac > Makefile > Makefile.am > ... > /home/devbdie/src/module1/ > Makefile > Makefile.am > module1.c > ... > /home/devbdie/src/module2/ > Makefile > Makefile.am > module2.c > ... > /home/devbdie/obj/module1 > module1.o > ... > /home/devbdie/obj/module2 > module2.o > ... > /home/devbdie/bin/ > module1 > module2 > ...
Unfortunately, you cannot easily get Automake to do it exactly like this for you. What you can do is move the files from /home/devbdie/ to /home/devbdie/src and then cd /home/devbdie/obj ../src/configure [OPTIONS...] make then the objects will appear where you want them. The programs will appear alongside the objects. If you need them in /home/devbdie/bin/ as well you could make copies or symlinks there, but note that Automake's concept of the build tree doesn't fit that well: /home/devbdie/bin is not below /home/devbdie/obj If at all possible, you should consider changing your layout though. Really the way Automake separates trees is quite handy once you get used to it. Hope that helps. Cheers, Ralf