Re: Conditional target

2011-01-27 Thread Sergio Belkin
2011/1/27 Ralf Wildenhues : > * Sergio Belkin wrote on Thu, Jan 27, 2011 at 04:40:10AM CET: >> tests = $(EXTRA_PROGRAMS) > >> if forcestatic >> tests: LIBS += $(STATIC_RESOLV) >> end if >> >> The problem is that automake it complains that . >> >> tests was already defined in condition forcestatic,

make test with fortran program

2011-01-27 Thread Eve-Marie Devaliere
Dear all, I created a fortran library with autoconf/automake and am now trying to get 'make test' to run a fortran program as a test I have the following in my test/Makefile.am AM_DEFAULT_SOURCE_EXT = .f90 TESTS = forward/Example1_Simple/Example1_Simple \ k_matrix/Example1_Simple/Exa

Re: make test with fortran program

2011-01-27 Thread Ralf Wildenhues
Hello Eve-Marie, * Eve-Marie Devaliere wrote on Thu, Jan 27, 2011 at 07:07:51PM CET: > AM_DEFAULT_SOURCE_EXT = .f90 > TESTS = forward/Example1_Simple/Example1_Simple \ > k_matrix/Example1_Simple/Example1_Simple > check_PROGRAMS = $(TESTS) > > when I run automake it outputs > automake > te

Re: Conditional target

2011-01-27 Thread Ralf Wildenhues
Hello Sergio, * Sergio Belkin wrote on Thu, Jan 27, 2011 at 01:15:45PM CET: > 2011/1/27 Ralf Wildenhues : > > * Sergio Belkin wrote on Thu, Jan 27, 2011 at 04:40:10AM CET: > >> tests = $(EXTRA_PROGRAMS) > > > >> if forcestatic > >> tests: LIBS += $(STATIC_RESOLV) > >> end if > >> > >> The problem

Re: make test with fortran program

2011-01-27 Thread Eve-Marie Devaliere
Thanks Ralph! :) I now have in my test/Makefile.am AM_DEFAULT_SOURCE_EXT = .f90 TESTS = forward/Example1_Simple/Example1_Simple \ k_matrix/Example1_Simple/Example1_Simple check_PROGRAMS = $(TESTS) AUTOMAKE_OPTIONS=subdir-objects automake and configure now work but at the end of running m