summaryrefslogtreecommitdiffstats
path: root/SD-VBS/common/makefiles/Makefile.recurse
diff options
context:
space:
mode:
Diffstat (limited to 'SD-VBS/common/makefiles/Makefile.recurse')
-rw-r--r--SD-VBS/common/makefiles/Makefile.recurse39
1 files changed, 39 insertions, 0 deletions
diff --git a/SD-VBS/common/makefiles/Makefile.recurse b/SD-VBS/common/makefiles/Makefile.recurse
new file mode 100644
index 0000000..9a9d088
--- /dev/null
+++ b/SD-VBS/common/makefiles/Makefile.recurse
@@ -0,0 +1,39 @@
1# This file is included in the makefiles of the non-leaf nodes
2# Thus the various targets in this file have to trickle down
3# into the subdirectories
4# List the subdirectories and call the target for each one of them
5
6################################################################
7# RECURSE
8################################################################
9# Listing the subdirectories
10SUBDIRS = $(patsubst %/Makefile,%,$(wildcard */Makefile))
11
12RECURSE-DEPENDS = $(patsubst %,%.traverse,$(SUBDIRS))
13
14all: recurse
15
16debug: recurse
17
18clean: recurse
19
20compile: recurse
21
22c-run: recurse
23
24matlab-run: recurse
25
26mcc-run: recurse
27
28recurse: $(RECURSE-DEPENDS)
29
30time-run: recurse
31
32preload-run: recurse
33
34run: recurse
35
36# MAKECMDGOALS contains the gmake target specified on the command line
37# it is defined automatically by gmake
38%.traverse:
39 $(MAKE) -C $* $(MAKECMDGOALS)