[Top][All Lists]

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

Re: Update Question

From: address@hidden
Subject: Re: Update Question
Date: Thu, 5 Aug 2004 11:25:11 -0700 (PDT)

The most obvious suggestion to me is add a dependency rule to your makefile
for this file that executes a "cvs update important_file.c" command.  That
way any time you do a make on the project, the critical file will be updated
and recompiled if it has changed.  For this to be useful, you must be able
to interact with CVS without entering a password.  How this is achieved
depends on how you originally authenticated with CVS.

Something like this should be added to your makefile:

important_file.o: important_file.c
        cvs update important_file.c
        $(CC) $(CFLAGS) -c important_file.c

YMMV depending on your project rules. Don't forget tabs are required to indent
as shown above.

Adam Bernstein   address@hidden
Key fingerprint =  E1 91 49 4C 24 18 E2 04  7A D3 78 A8 86 A9 7C 38

On Thu, 5 Aug 2004, Tennis Smith wrote:

> Hi,
> I have a single file that's pivital to a project.  Any time that file is
> updated, we need to do a re-compile of the components dependent on it. Is
> there any way to automatically "drive" the recompilation when the user does
> a "cvs update" on that central file?
> Any examples are welcome too. ;-)
> TIA,
> -Tennis
> --
> Remove "-remove-to-reply" to respond to my  email address directly.
> _______________________________________________
> Info-cvs mailing list
> address@hidden

reply via email to

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