Revision 625
Added by Aaron Marcuse-Kubitza almost 13 years ago
Makefile | ||
---|---|---|
1 | 1 |
# Make |
2 | 2 |
SHELL := /bin/bash |
3 |
subMake = $(MAKE) $(@F) --directory=$(@D) |
|
3 |
pathParts = $(shell path="$(1)"; echo "$${path%%/*}" "$${path\#*/}") |
|
4 |
topDir = $(firstword $(pathParts)) |
|
5 |
subPath = $(lastword $(pathParts)) |
|
6 |
subMake = $(MAKE) $(call subPath,$@) --directory=$(call topDir,$@) |
|
4 | 7 |
|
5 | 8 |
# OS |
6 | 9 |
os := $(shell uname) |
Also available in: Unified diff
Makefiles: Recurse into outermost subdir rather than bypassing it and going directly to innermost subdir