help-make
[Top][All Lists]
Advanced

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

RE: Must be very simple


From: PATTON, BILLY \(SBCSI\)
Subject: RE: Must be very simple
Date: Mon, 20 Mar 2006 10:07:14 -0600

Yes you are correct,   It does not need to be in a rule format.

This must be done before any rules are defined because these files have
lists that are there to create the rules.  But because the list may be
edited I need to get he lists form the SRC_TREE if the exist then the
other directory if they do not exist.

So could I do something like

INC_FLAG := $(shell test -f $(SRC_TREE)/ldb/make.include)

ifneq ($(INC_FLAG),o)
<command>
endif

-----Original Message-----
From: Paul Smith [mailto:address@hidden On Behalf Of Paul D. Smith
Sent: Monday, March 20, 2006 10:00 AM
To: PATTON, BILLY (SBCSI)
Cc: address@hidden
Subject: RE: Must be very simple


%% "PATTON, BILLY \(SBCSI\)" <address@hidden> writes:

  pb> Makefile:46: *** commands commence before first target.  Stop.

I said "precede it with a TAB _IN A RULE CONTEXT_".

IOW, this will work:

    foo:
    <T>     $(foreach ...)

This will not work:

    $(foreach ...)

or

    <T>     $(foreach ...)

But, the one that does work will only run when the foo target is
updated.  That doesn't seem to be what you want to do; however you
didn't give any information about what you wanted to do in your original
email.

-- 
------------------------------------------------------------------------
-------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad
Scientist




reply via email to

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