Project

General

Profile

« Previous | Next » 

Revision 739

Makefile: Support recursing into subdir when no target is specified (e.g. make mappings/)

View differences:

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