automake
[Top][All Lists]
Advanced

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

Re: way to specify dependencies for lots of code files easily?


From: Ed Hartnett
Subject: Re: way to specify dependencies for lots of code files easily?
Date: Tue, 06 Dec 2005 10:57:44 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Bruce Korb <address@hidden> writes:

> Ed Hartnett wrote:
>> Howdy all!
>> I am using automake to build my library, and I have a slew of test
>> programs:
>> # These programs are all built for make check in this directory.
>> check_PROGRAMS = tst_h_files tst_h_atts tst_h_vars tst_h_grps                
>> \
>> tst_h_compounds tst_h_wrt_cmp tst_h_rd_cmp tst_h_vl tst_h_opaques    \
>> tst_h_strings tst_h_dimscales tst_h_dimscales2 tst_h_enums tst_lists \
>> tst_dims tst_v2 tst_files tst_vars tst_varms tst_unlim_vars tst_atts \
>> tst_converts tst_converts2 tst_grps tst_compounds tst_vl tst_opaques \
>> tst_strings tst_interops
>
> $(check_PROGRAMS) : ../nc_tests.h

Duh!

Why didn't I think of that?

I also find that if I list it as a noinst_HEADERS it will track
dependencies correctly, even tracking which code file depends on which
header file, and only recompiling as necessary. 

Very clever, Automake programmers!

Thanks!

Ed
-- 
Ed Hartnett  -- address@hidden





reply via email to

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