diff --git a/nemu/Makefile b/nemu/Makefile index 85f842f..1cc7768 100644 --- a/nemu/Makefile +++ b/nemu/Makefile @@ -69,15 +69,15 @@ unit-tests: CFLAGS += $(shell pkg-config --cflags check) unit-tests: LDFLAGS += $(shell pkg-config --libs check) unit-tests: $(TEST_SRCS:%.c=$(OBJ_DIR)/%) -IMAGES = $(shell find $(IMAGES_PATH) -type f -name '*.bin') +IMAGES = $(patsubst %.bin, %, $(shell find $(IMAGES_PATH) -type f -name '*.bin')) -$(IMAGES): %: % $(BINARY) +$(IMAGES): %: %.bin $(BINARY) -$(BINARY) -b $< integration-tests: $(IMAGES) - + @echo $(IMAGES_PATH) test: unit-tests integration-tests @$(OBJ_DIR)/tests/expr_test -.PHONY: test \ No newline at end of file +.PHONY: test integration-tests \ No newline at end of file