make the example target not remove the binary

This commit is contained in:
jacekpoz 2024-08-09 22:04:01 +02:00
parent c101379150
commit 276138043d
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -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=<example_name>"
@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