From 276138043dea71d6647e6c8d38b58f6fdb6a94ee Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Fri, 9 Aug 2024 22:04:01 +0200 Subject: [PATCH] make the example target not remove the binary --- examples/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index df1c743..8d1bf31 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -11,7 +11,7 @@ NAMES = $(OBJ:$(EXAMPLE_DIR)/%=%) all: ifdef EXAMPLE - $(MAKE) -f $(EXAMPLE_DIR)/Makefile example-$(EXAMPLE) + $(MAKE) -f $(EXAMPLE_DIR)/Makefile example else @echo "you need to pick a test: make example EXAMPLE=" @echo -n "available examples:" @@ -19,7 +19,7 @@ else @echo endif -example-%: $(BIN)/$(EXAMPLE_DIR)/% +example: $(BIN)/$(EXAMPLE_DIR)/$(EXAMPLE) $(BIN)/$(EXAMPLE_DIR)/$(EXAMPLE) $(BIN)/%: %.c