| 1 | # Should be included at the start of each node.mk file. |
| 2 | |
| 3 | # Get name of current directory. |
| 4 | SUBDIR:=$(firstword $(SUBDIRSTACK)) |
| 5 | SUBDIRSTACK:=$(wordlist 2,$(words $(SUBDIRSTACK)),$(SUBDIRSTACK)) |
| 6 | # Push current directory on directory stack. |
| 7 | DIRSTACK:=$(CURDIR) $(DIRSTACK) |
| 8 | CURDIR:=$(CURDIR)$(SUBDIR) |
| 9 | |
| 10 | # Initialise node vars with empty value. |
| 11 | SUBDIRS:= |
| 12 | MOC_SRC_HDR:= |
| 13 | SRC_HDR:= |
| 14 | SRC_ONLY:= |
| 15 | HDR_ONLY:= |
| 16 | UI:= |