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
subMake = $(MAKE) $(@F) --directory=$(@D) --makefile=../input.Makefile
2
pathParts = $(shell path="$(1)"; echo "$${path%%/*}" "$${path\#*/}")
3
topDir = $(firstword $(pathParts))
4
subPath = $(lastword $(pathParts))
5
subMake = $(MAKE) $(call subPath,$@) --directory=$(call topDir,$@) \
6
--makefile=../input.Makefile
3 7
# input.Makefile path is relative to subdir
4 8

  
5 9
#####

Also available in: Unified diff