[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multi-Arch Multi-directories make
From: |
Paul D. Smith |
Subject: |
Re: Multi-Arch Multi-directories make |
Date: |
Sun, 18 Jun 2006 10:02:26 -0400 |
%% Uri Shkolnik <address@hidden> writes:
>> MAKEDIRS = \
>> $(UTILS_MODULE)/build/sms1000 \
>> $(DVB_H_HANDOVER_MODULE)/build/sms1000 \
>>
>> .PHONY: test1
>> test1: CreateMasterParamFile
>> @echo **** TEST ****
>> $(foreach dir, $(MAKEDIRS), $(MAKE) clean -C $(dir);)
This is the wrong way to build in subdirectories. There are lots of
problems with this, not the least of which if one directory fails to
build it won't stop trying to build the rest of them.
Look at the section on "Phony Targets" in the GNU make manual for a
discussion of this.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> 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