automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

top level make file with deep dir struct demo


From: Matt Hull
Subject: top level make file with deep dir struct demo
Date: Mon, 9 Jan 2006 15:30:03 -0600 (CST)

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 :

address@hidden ~/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 :

address@hidden ~/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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]