diff options
Diffstat (limited to 'SD-VBS/common/makefiles/Makefile.recurse')
| -rw-r--r-- | SD-VBS/common/makefiles/Makefile.recurse | 39 |
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 | ||
| 10 | SUBDIRS = $(patsubst %/Makefile,%,$(wildcard */Makefile)) | ||
| 11 | |||
| 12 | RECURSE-DEPENDS = $(patsubst %,%.traverse,$(SUBDIRS)) | ||
| 13 | |||
| 14 | all: recurse | ||
| 15 | |||
| 16 | debug: recurse | ||
| 17 | |||
| 18 | clean: recurse | ||
| 19 | |||
| 20 | compile: recurse | ||
| 21 | |||
| 22 | c-run: recurse | ||
| 23 | |||
| 24 | matlab-run: recurse | ||
| 25 | |||
| 26 | mcc-run: recurse | ||
| 27 | |||
| 28 | recurse: $(RECURSE-DEPENDS) | ||
| 29 | |||
| 30 | time-run: recurse | ||
| 31 | |||
| 32 | preload-run: recurse | ||
| 33 | |||
| 34 | run: 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) | ||
