Revision 739
Added by Aaron Marcuse-Kubitza almost 13 years ago
Makefile | ||
---|---|---|
1 | 1 |
# Make |
2 | 2 |
SHELL := /bin/bash |
3 | 3 |
pathParts = $(shell path="$(1)"; echo "$${path%%/*}" "$${path\#*/}") |
4 |
topDir = $(firstword $(pathParts))
|
|
5 |
subPath = $(lastword $(pathParts))
|
|
4 |
topDir = $(word 1,$(pathParts))
|
|
5 |
subPath = $(word 2,$(pathParts))
|
|
6 | 6 |
subMake = $(MAKE) $(call subPath,$@) --directory=$(call topDir,$@) |
7 | 7 |
|
8 | 8 |
# OS |
Also available in: Unified diff
Makefile: Support recursing into subdir when no target is specified (e.g. make mappings/)