M7350/bootable/bootloader/lk/make/macros.mk

6 lines
227 B
Makefile
Raw Normal View History

2024-09-09 08:52:07 +00:00
# Find the local dir of the make file
GET_LOCAL_DIR = $(patsubst %/,%,$(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))))
# makes sure the target dir exists
MKDIR = if [ ! -d $(dir $@) ]; then mkdir -p $(dir $@); fi