help-make
[Top][All Lists]
Advanced

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

Re: dependency issues in Make


From: Johan Bezem
Subject: Re: dependency issues in Make
Date: Tue, 12 Oct 2004 09:29:05 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)

Hi,

your 'all' rule doesn't touch/create a file called 'all', but it isn't declared 
.PHONY either. See
Paul's Rule 2 (http://make.paulandlesley.org/rules.html#rule2). This may 
prevent make from doing what you want.

[Also, you repeat your filenames several times. You might consider following 
Paul's rule 4. But as long as your spelling is consistent of itself, and in 
sync with your directory structure, this is just a nuisance for you, not a 
consideration for make.]

Last thing that strikes me is your 'strip' command:
        if [ -e $(EXE).exe ]; then strip $(EXE).exe; else strip $(EXE); fi
I'm not familiar with mingw, but if your linker may produce "$(EXE).exe" in stead of 
"$(EXE)", your make rule is again not updating the exact target of your rule, cf. Paul's 
Rule 2.

If the makefile still doesn't work after correcting these issues, shout again 
;-)

HTH,

Johan

John David Ratliff wrote:
I have a "simple" Makefile....
--
JB Enterprises - Johan Bezem         Tel:   +49 172 5463210
Software Architect - Project Manager Fax:   +49 172 50 5463210
Realtime / Embedded Consultant       Email: address@hidden
Design - Development - Test - QA     Web:   http://www.bezem.de






reply via email to

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