Project

General

Profile

« Previous | Next » 

Revision 625

Makefiles: Recurse into outermost subdir rather than bypassing it and going directly to innermost subdir

View differences:

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