make the example target not remove the binary
This commit is contained in:
parent
c101379150
commit
276138043d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue