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:[EMAIL PROTECTED] On Behalf Of Paul D. Smith Sent: Monday, March 20, 2006 10:00 AM To: PATTON, BILLY (SBCSI) Cc: [email protected] Subject: RE: Must be very simple %% "PATTON, BILLY \(SBCSI\)" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
