From 4673fde605090320fbab227e56bb085eec97362a Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sun, 10 Oct 2021 12:11:45 +0200 Subject: Add boolean primitives and more (better) tests --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index afcd918..1a3168b 100755 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ LDLIBS := RELEASE_CFLAGS := -DNDEBUG -O2 DEBUG_CFLAGS := -DDEBUG -O2 -g -.PHONY: tools clean run +.PHONY: build tests run clean # Setup debug/release builds. # make clean && make DEBUG=0 @@ -40,14 +40,15 @@ $(BIN): $(SRC_MAIN) $(WATCH_SRC) $(BUILD_DIR) $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(SRC_MAIN) $(LDLIBS) # Create build directory if needed. -$(BUILD_DIR): tools +$(BUILD_DIR): mkdir -p $(BUILD_DIR) run: $(BIN) ./$(BIN) -i tests: $(BIN) - ./$(BIN) examples/arithmetic.bdl | diff -q tests/arithmetic_expected.txt - + ./$(BIN) examples/arithmetic.bdl | diff tests/arithmetic_expected.txt - + ./$(BIN) examples/booleans.bdl | diff tests/booleans_expected.txt - # Remove build directory. clean: -- cgit v1.2.1