Re: library dependency

2009-03-03 Thread Peter Johansson
Hello John, John Wohlbier wrote: mv -f .deps/lib1src.Tpo .deps/lib1src.Plo make: *** No rule to make target `../lib2/liblib2.la', needed by `liblib1.la'. Stop. Does automake allow for automatically building lib2 when make is typed within lib1? If so, how is it done? If not, is this an unreaso

library dependency

2009-03-03 Thread John Wohlbier
Forgive me if this has been worked over (and over and over) but I could not find anything in the archives to answer my question. I have two libraries sitting next to each other in the source tree, and I'd like one to depend on the other. In particular, lib1 depends on lib2. Under normal operation

Re: Appending to builtin Automake variables from an included file

2009-03-03 Thread Ralf Wildenhues
* Allan Caffee wrote on Tue, Mar 03, 2009 at 07:00:47PM CET: > am/doxygen.am: > distclean-am-hook: > -rm -rf Doxyfile doc/html > # ... > > am/dist_rpm.am: > distclean-am-hook: > -rm -f template.spec > # ... > > Makefile.am: > include $(top_srcdir)/am/doxygen.am > inc

Re: Destination directory for object files

2009-03-03 Thread Jan Engelhardt
On Tuesday 2009-03-03 22:37, Ralf Wildenhues wrote: >* Jeff Ward wrote on Tue, Mar 03, 2009 at 10:31:01PM CET: >> >> What I was hoping for was an ability to make the rule look something >> like the following: >> .cpp.o: >> if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o >> obj

Re: Destination directory for object files

2009-03-03 Thread Ralf Wildenhues
* Jeff Ward wrote on Tue, Mar 03, 2009 at 10:31:01PM CET: > > What I was hoping for was an ability to make the rule look something > like the following: > .cpp.o: > if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o > objects/$@ $<; \ > > This would cause my object files to be pla

Re: Destination directory for object files

2009-03-03 Thread Jeff Ward
Thanks for quick reply. Hello Jeff, * Jeff Ward wrote on Tue, Mar 03, 2009 at 07:58:37PM CET: I have an automake project setup but I would like the object files to be placed in a specified directory. For example: Foo/Foo.cpp Foo/obj Foo/Makefile.am I would like to have the Foo.o in the ob

Re: Destination directory for object files

2009-03-03 Thread Ralf Wildenhues
Hello Jeff, * Jeff Ward wrote on Tue, Mar 03, 2009 at 07:58:37PM CET: > I have an automake project setup but I would like the object files to be > placed in a specified directory. For example: > > Foo/Foo.cpp > Foo/obj > Foo/Makefile.am > > I would like to have the Foo.o in the obj directory aft

Destination directory for object files

2009-03-03 Thread Jeff Ward
all, I have an automake project setup but I would like the object files to be placed in a specified directory. For example: Foo/Foo.cpp Foo/obj Foo/Makefile.am I would like to have the Foo.o in the obj directory after compilation and not in directory Foo. Is this possible? If so how do

Re: copy check_SCRIPTS to build directory

2009-03-03 Thread Ralf Wildenhues
Hello James, sorry for the long delay. * James K. Lowden wrote on Tue, Feb 03, 2009 at 05:50:54AM CET: > I have 25 unit tests that each process an SQL script: > > t0001 < t0001.sql > t0002 < t0002.sql > etc. > (Yeah, we planned for a lot of tests!) > > I like to use a

Re: AX_ADD_AM_MACRO creates circular dependencies

2009-03-03 Thread Ralf Wildenhues
* Allan Caffee wrote on Tue, Mar 03, 2009 at 07:14:51PM CET: > On Fri, Feb 13, 2009 at 10:43 AM, Allan Caffee wrote: > > Ideally the macro archive would provide a way to > > produce these rules in a way that they would be available for Automake to > > work > > its magic. I'm working on a patch s

Re: AX_ADD_AM_MACRO creates circular dependencies

2009-03-03 Thread Allan Caffee
On Fri, Feb 13, 2009 at 10:43 AM, Allan Caffee wrote: > Ideally the macro archive would provide a way to > produce these rules in a way that they would be available for Automake to work > its magic. I'm working on a patch series that would allow macro developers > provide an Automake include-able

Re: Appending to builtin Automake variables from an included file

2009-03-03 Thread Allan Caffee
On Sat, 28 Feb 2009, Ralf Wildenhues wrote: > * Allan Caffee wrote on Thu, Feb 26, 2009 at 02:49:16PM CET: > > That is certainly one possibility. Unfortunately though that means that > > in the Makefile.am files you _must_ use += since Automake will error out > > if you assign more than one value