[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Making multiple projects with one makefile
From: |
David Baird |
Subject: |
RE: Making multiple projects with one makefile |
Date: |
Sat, 7 Aug 2004 18:22:21 +0300 |
> MAKEDIRS = controlBoard displayBoard serialOptionBoard
> all:
> $(foreach dir, $(MAKEDIRS), $(MAKE) -C $(dir);)
>
> Now the ';' separates the command into 3 separate commands,
> but now it tries
> to pass the ';' as part of the directory name!
What would happen if you wrote your make file like this?
MAKEDIRS = controlBoard displayBoard serialOptionBoard
all:
$(foreach dir,$(MAKEDIRS),$(MAKE) -C $(dir) ;)
-David