|
| From: | Jim |
| Subject: | Re: 'How makefiles are remade' |
| Date: | Tue, 20 Apr 2004 17:35:41 -0700 |
| User-agent: | Mozilla Thunderbird 0.5 (Windows/20040207) |
Noel Yap wrote:
Jim wrote:Noel Yap wrote:How do you know? Sure the rule is done, it doesn't mean that ticks is reloaded....This makefile works: .PHONY: all all: ; include ticks ticks: @touch $(@)Since we have this sort of thing in our makefiles, I'm pretty sure it gets reloaded. The above can easily be modified to show this.
okay so I extended it some... and this fails.
.PHONY:all
all: junk;
@echo $(TICKS)
include ticks2
ticks2:
@echo TICKS=a number >> ticks2
include make2
make2:
@echo junk: >>make2
@echo echo $(TICKS) >>make2
if ticks2 were really reloaded then make2 would not have a blank value
for $(TICKS)
Noel
| [Prev in Thread] | Current Thread | [Next in Thread] |