aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-10 12:11:45 +0200
committerBad Diode <bd@badd10de.dev>2021-10-10 12:11:45 +0200
commit4673fde605090320fbab227e56bb085eec97362a (patch)
tree5d510484d5543b4b11fd62b42a4b1e14672ff2cd /Makefile
parentc2bfb5368e603d686190fdc9f3ddbafbda075a9c (diff)
downloadbdl-4673fde605090320fbab227e56bb085eec97362a.tar.gz
bdl-4673fde605090320fbab227e56bb085eec97362a.zip
Add boolean primitives and more (better) tests
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index afcd918..1a3168b 100755
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ LDLIBS :=
22RELEASE_CFLAGS := -DNDEBUG -O2 22RELEASE_CFLAGS := -DNDEBUG -O2
23DEBUG_CFLAGS := -DDEBUG -O2 -g 23DEBUG_CFLAGS := -DDEBUG -O2 -g
24 24
25.PHONY: tools clean run 25.PHONY: build tests run clean
26 26
27# Setup debug/release builds. 27# Setup debug/release builds.
28# make clean && make <target> DEBUG=0 28# make clean && make <target> DEBUG=0
@@ -40,14 +40,15 @@ $(BIN): $(SRC_MAIN) $(WATCH_SRC) $(BUILD_DIR)
40 $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(SRC_MAIN) $(LDLIBS) 40 $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(SRC_MAIN) $(LDLIBS)
41 41
42# Create build directory if needed. 42# Create build directory if needed.
43$(BUILD_DIR): tools 43$(BUILD_DIR):
44 mkdir -p $(BUILD_DIR) 44 mkdir -p $(BUILD_DIR)
45 45
46run: $(BIN) 46run: $(BIN)
47 ./$(BIN) -i 47 ./$(BIN) -i
48 48
49tests: $(BIN) 49tests: $(BIN)
50 ./$(BIN) examples/arithmetic.bdl | diff -q tests/arithmetic_expected.txt - 50 ./$(BIN) examples/arithmetic.bdl | diff tests/arithmetic_expected.txt -
51 ./$(BIN) examples/booleans.bdl | diff tests/booleans_expected.txt -
51 52
52# Remove build directory. 53# Remove build directory.
53clean: 54clean: