help-make
[Top][All Lists]
Advanced

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

Re: problem building multiple targets


From: Martin d Anjou
Subject: Re: problem building multiple targets
Date: Wed, 12 Nov 2008 15:28:21 -0500 (EST)
User-agent: Alpine 1.10 (LNX 962 2008-03-14)

 _ARCH := 2801 28015
OBJDIR := $(_ARCH:%=_%)
$(OBJDIR):
        address@hidden -d $@ ] || mkdir -p $@
        address@hidden(MAKETARGET)

The rule runs only once. If you want to build two targets, this is not the way to do it. Try this instead (I have grossly simpified it):

_ARCH := 2801 28015
OBJDIR := $(_ARCH:%=_%)
_%:
        echo Hi
all: $(OBJDIR)

Martin




reply via email to

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