bug-make
[Top][All Lists]
Advanced

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

Re: 'How makefiles are remade'


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:

This makefile works:

.PHONY: all

all: ;

include ticks

ticks:
    @touch $(@)


How do you know? Sure the rule is done, it doesn't mean that ticks is reloaded....


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






reply via email to

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