help-make
[Top][All Lists]
Advanced

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

Extending a rule at a later time.


From: Nori, Soma Sekhar
Subject: Extending a rule at a later time.
Date: Mon, 2 Aug 2004 12:24:23 +0530

I have a suitation where I need to extend a rule with additional commands after 
the rule has already been defined. 

====== makefile =======
mybuild:
        gcc file1.c

include addendum.mak
=======================

===== addendum.mak ======

mybuild: 
        gcc file2.c
=========================

Right now make gives me a warning "ignoring old commands for target"

Is there a way by which I can get make to combine both set of commands (and 
dependencies)?

ie, the end result should be:

mybuild: 
        gcc file1.c
        gcc file2.c

-
Sekhar Nori













reply via email to

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