| 1 |
PATH_TO_BASE=../../.. |
| 2 |
include ../../Makefiles/Makefile.include |
| 3 |
|
| 4 |
SUBDIRS = $(wildcard */) |
| 5 |
|
| 6 |
# Build in all subdirectories. |
| 7 |
# |
| 8 |
# see http://www.gnu.org/software/make/manual/make.html#Phony-Targets |
| 9 |
# for a way of improving the following: |
| 10 |
# |
| 11 |
|
| 12 |
.PHONY : clean $(SUBDIRS) |
| 13 |
|
| 14 |
all: $(SUBDIRS) |
| 15 |
|
| 16 |
$(SUBDIRS): |
| 17 |
(echo "building in directory $@"; $(MAKE) $(PARALLEL_MAKE) OPTFLAG="$(OPTFLAG)" --no-print-directory -C $@ ${RECURSIVE_TARGET}) |
| 18 |
|
| 19 |
test: RECURSIVE_TARGET = test |
| 20 |
test: $(SUBDIRS) |
| 21 |
|
| 22 |
clean: RECURSIVE_TARGET = clean |
| 23 |
clean: $(SUBDIRS) |