hi, thanks for your patience with my questions and sorry for posting on
the wrong list.
i am trying to use a top level configure script in ./ with all sources in
./src and ./src/gtk2
directory :
-----------
src/main.c
src/gtk1/gtk1.c
makefile.am :
-------------
bin_PROGRAMS = mine
mine_SOURCES = src/main.c
if WITH_GTK1
mine_sources += src/gtk2/gtk1.c src/gtk2/gtk1.h
endif
DIST_SUBDIRS = src src/gtk1 src/gtk2
i left out configure.in since its a little longer.
when i try to run make i get :
[EMAIL PROTECTED] ~/mine-0.0.9 $ aclocal -I aclocal.include/ && autoheader &&
autoconf && automake && ./configure && make
automake: makefile.am: not supported: source file `src/main.c' is in
subdirectory
if i change mine_SOURCES = src/main.c to mine_SOURCES = main.c :
[EMAIL PROTECTED] ~/mine-0.0.9 $ aclocal -I aclocal.include/ && autoheader &&
autoconf && automake && ./configure && make
[skip configure output]
make: *** No rule to make target `main.c', needed by `main.o'. Stop.
not sure what is wrong
thanks
matt