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