automake
[Top][All Lists]
Advanced

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

Re: makedepend and automake


From: Tim Van Holder
Subject: Re: makedepend and automake
Date: Tue, 24 Jul 2001 18:41:58 +0200

> Now I have a script that do the following things:
> 
> aclocal
> autoconf
> automake -a
> ./configure
> makedepend <some options> *.cpp
> 
> the problem with this approac is that each time an option will change I
> need to modify the Makefile.am (for the options) and in the script.
> 
> Do someone of you know how I can solve this problem?
> 
> These are the files Makefile.am and configure.in
> 
> Makefile.am:
> 
> bin_PROGRAMS = prova
> prova_SOURCES = A.cpp B.cpp
> AUTOMAKE_OPTIONS = no-dependencies

My guess would be to add something like

depend: $(prova_SOURCES)
        makedepend $(CXXFLAGS) $(AM_CXXFLAGS) $(prova_SOURCES)

to your Makefile.am.
Then typing 'make depend' would run makedepend with the current
options.




reply via email to

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