I am trying to create some Makefiles for multi-architecture builds as described here http://make.paulandlesley.org/multi-arch.html. I am using the advanced VPATH method and that works fine.
My problem is that some of the directories have both source code and sub-directories to build. Normally I would do something like this.
all: subdirs src
subdirs: for i in $(SUBDIRS); do \ $(MAKE) -C $$dir; \ done
src: whatever
But using the VPATH method, the make switches to the obj directory first and then fails because it can't find the subdirs. What would be the best way to handle this situation? I guess I need some sort of test in the if part to build subdirs before I include the target.mk file and switch to the obj directory.
Thanks, Bruce
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
_______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
