diff options
author | Bad Diode <bd@badd10de.dev> | 2024-06-18 22:19:24 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-06-18 22:19:24 +0200 |
commit | faf69726d4fc619bc55a2c1105bd542673cce342 (patch) | |
tree | 8145281c300f9248c834deabf003811589e3eec8 /Makefile | |
parent | ad14773fcebdbd989c1d7c3245b59a1cae666d2f (diff) | |
download | bdl-faf69726d4fc619bc55a2c1105bd542673cce342.tar.gz bdl-faf69726d4fc619bc55a2c1105bd542673cce342.zip |
Add basic while loop
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -7,7 +7,7 @@ BUILD_DIR := build | |||
7 | TESTS_DIR := tests | 7 | TESTS_DIR := tests |
8 | TEST_FILES := $(wildcard $(TESTS_DIR)/*.bad) | 8 | TEST_FILES := $(wildcard $(TESTS_DIR)/*.bad) |
9 | SRC_MAIN := $(SRC_DIR)/main.c | 9 | SRC_MAIN := $(SRC_DIR)/main.c |
10 | SRC_RUN := tests/conditionals.bad | 10 | SRC_RUN := tests/loops.bad |
11 | WATCH_SRC := $(shell find $(SRC_DIR) -name "*.c" -or -name "*.s" -or -name "*.h") | 11 | WATCH_SRC := $(shell find $(SRC_DIR) -name "*.c" -or -name "*.s" -or -name "*.h") |
12 | INC_DIRS := $(shell find $(SRC_DIR) -type d) | 12 | INC_DIRS := $(shell find $(SRC_DIR) -type d) |
13 | INC_FLAGS := $(addprefix -I,$(INC_DIRS)) | 13 | INC_FLAGS := $(addprefix -I,$(INC_DIRS)) |
@@ -74,8 +74,11 @@ graph-symbols: $(BIN) | |||
74 | 74 | ||
75 | tests: $(BIN) | 75 | tests: $(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. |