aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5af466c..732766e 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ BUILD_DIR := build
7TESTS_DIR := tests 7TESTS_DIR := tests
8TEST_FILES := $(wildcard $(TESTS_DIR)/*.bad) 8TEST_FILES := $(wildcard $(TESTS_DIR)/*.bad)
9SRC_MAIN := $(SRC_DIR)/main.c 9SRC_MAIN := $(SRC_DIR)/main.c
10SRC_RUN := tests/conditionals.bad 10SRC_RUN := tests/loops.bad
11WATCH_SRC := $(shell find $(SRC_DIR) -name "*.c" -or -name "*.s" -or -name "*.h") 11WATCH_SRC := $(shell find $(SRC_DIR) -name "*.c" -or -name "*.s" -or -name "*.h")
12INC_DIRS := $(shell find $(SRC_DIR) -type d) 12INC_DIRS := $(shell find $(SRC_DIR) -type d)
13INC_FLAGS := $(addprefix -I,$(INC_DIRS)) 13INC_FLAGS := $(addprefix -I,$(INC_DIRS))
@@ -74,8 +74,11 @@ graph-symbols: $(BIN)
74 74
75tests: $(BIN) 75tests: $(BIN)
76 @for name in $(TEST_FILES); do\ 76 @for name in $(TEST_FILES); do\
77 line=" OK";\
77 printf "$${name}\r" ;\ 78 printf "$${name}\r" ;\
78 $(BIN) $${name} && printf "$${name}\tOK!\n";\ 79 $(BIN) $${name} \
80 && printf "$$line\r" \
81 && printf "$${name}\n";\
79 done 82 done
80 83
81# Remove build directory. 84# Remove build directory.