From 129cf9c1d06a0f7374d23779e9e1368e504828b0 Mon Sep 17 00:00:00 2001 From: Ronald Date: Sun, 1 Nov 2020 00:16:03 +0100 Subject: [PATCH] automatically create the 'bin' object dir --- RaspberryPi&JetsonNano/c/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RaspberryPi&JetsonNano/c/Makefile b/RaspberryPi&JetsonNano/c/Makefile index 201509e1e..df7a6fe85 100644 --- a/RaspberryPi&JetsonNano/c/Makefile +++ b/RaspberryPi&JetsonNano/c/Makefile @@ -54,6 +54,8 @@ JETSON_epd:${OBJ_O} echo $(@) $(CC) $(CFLAGS) $(OBJ_O) $(JETSON_DEV_C) -o $(TARGET) $(LIB_JETSONI) $(DEBUG) +$(shell mkdir -p $(DIR_BIN)) + ${DIR_BIN}/%.o:$(DIR_Examples)/%.c $(CC) $(CFLAGS) -c $< -o $@ -I $(DIR_Config) -I $(DIR_GUI) -I $(DIR_EPD) $(DEBUG)