header.mk 304B

1234567891011121314
  1. # Included at the top of each subdirectory Makefile, immediately
  2. # following the local re-definition of DIRNAME
  3. # Push the previous directory onto the 'stack'
  4. sp := $(sp).x
  5. dirstack_$(sp) := $(d)
  6. # Update $(d) to be the current directory
  7. ifneq (,$(d))
  8. d := $(d)/$(DIRNAME)
  9. else
  10. d := $(DIRNAME)
  11. endif