# ---- Push on stack ---- SP := $(SP).x DIRSTACK_$(SP) := $(d) d := $(DIR) # Iterate through subdirectory tree DIR := $(d)/libc include $(DIR)/rules.mk DIR := $(d)/libn include $(DIR)/rules.mk DIR := $(d)/libbio include $(DIR)/rules.mk # ---- Pop off stack ---- d := $(DIRSTACK_$(SP)) SP := $(basename $(SP))