[glug-t] Automake dependencies
- From: Vijay Kumar <vijaykumar@xxxxxxxxxxxx>
- To: glug_t@xxxxxxxxxxxxx
- Date: 29 Jun 2005 21:19:29 +0530
Guys,
I was fiddling with automake and autoconf, and ran into a problem with
automake.
The headers files I add in myprogram_SOURCES(in Makefile.am) do not
appear in the dependencies in the resultant Makefile. Is this normal
behaviour or am I missing something?
Here is the Makefile.am in the src/ dir.
-------------- Makefile.am ------------
bin_PROGRAMS = bricks
bricks_SOURCES = brick.c bricks.c char.c graphics.c display.c input.c
delay.c dir.h bool.h char.h display.h input.h score.h brick.h delay.h
graphics.h matrix.h
bricks_CFLAGS = @SDL_CFLAGS@
bricks_LDADD = @SDL_LIBS@
brick.c: dir.h
bricks_DISTCLEANFILES = dir.h
dir.h: Makefile
echo '#define DATA_DIR "$(pkgdatadir)"' >$@
-----------------------------------------
Here dir.h is created during build time, and was not getting
generated, because it was not in any of the dependencies. I have to
manually add a dependency "brick.c: dir.h" to get it generated.
Any better solutions?
Vijay
--
Free the Code,
Free the User.
---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with
'unsubscribe' as subject.
Website: http://glugt.linuxisle.com
- Follow-Ups:
- [glug-t] Re: Automake dependencies
- From: Muthiah Annamalai
- [glug-t] Re: Automake dependencies
- From: Muthiah Annamalai
Other related posts:
- » [glug-t] Automake dependencies
- » [glug-t] Re: Automake dependencies
- » [glug-t] Re: Automake dependencies
- » [glug-t] Re: Automake dependencies
- » [glug-t] Re: Automake dependencies
- [glug-t] Re: Automake dependencies
- From: Muthiah Annamalai
- [glug-t] Re: Automake dependencies
- From: Muthiah Annamalai