help-make
[Top][All Lists]
Advanced

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

execution of rules in included Makefiles


From: Chris Cross
Subject: execution of rules in included Makefiles
Date: Tue, 9 Nov 2010 16:00:12 -0500


Hi,
I have a makefiles of the form:

#Makefile

.PHONY: all
all: foo

foo: foo.o
        $(CC) $< $(LIBS) -o $@

include Makefile.rules
include Makefile.gen

# end Makefile

Makefile.rules contains some pattern rules. Makefile.gen contains a rule
and that recipe is being executed before before the recipe for foo in the
outer Makefile. I'm probably not reading close enough, but the manual
doesn't seem to address execution of rules in included Makefiles. Do rules
in included Makefiles get executed in the read pass of the outer Makefile?

Thanks,
Chris


Chris Cross
DataPower Development
address@hidden

reply via email to

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