summaryrefslogtreecommitdiffstats
path: root/SD-VBS/common/makefiles/Makefile.recurse
diff options
context:
space:
mode:
authorleochanj105 <leochanj@live.unc.edu>2020-10-19 23:09:30 -0400
committerleochanj105 <leochanj@live.unc.edu>2020-10-20 02:40:39 -0400
commitf618466c25d43f3bae9e40920273bf77de1e1149 (patch)
tree460e739e2165b8a9c37a9c7ab1b60f5874903543 /SD-VBS/common/makefiles/Makefile.recurse
parent47ced4e96bbb782b9e780e8f2cfc637b2c21ff44 (diff)
initial sd-vbs
initial sd-vbs add sd-vbs sd-vbs
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)