aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-20 15:09:50 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-20 15:09:50 +0200
commitb9dc51446be2b8858cd0a9b41168fafaf115ae3a (patch)
treed6920171103f047a1ac4c81e5e35a7cbb2a48a0e /Makefile
parentfb21e8efa65662dcb6c2cc7ed693dea91888c3a7 (diff)
downloadbokf-b9dc51446be2b8858cd0a9b41168fafaf115ae3a.tar.gz
bokf-b9dc51446be2b8858cd0a9b41168fafaf115ae3a.zip
build: wire the invoice renderer into the test suite
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 72e3c0a..9ea5604 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ VENDOR_SRC = vendor/sqlite3.c vendor/yyjson.c vendor/sha256.c \
CORE_SRC = src/util.c src/log.c src/config.c src/db.c src/auth.c \
src/sessions.c src/audit.c src/protocol.c src/commands.c \
src/seed.c src/ledger.c src/reports.c src/sru.c src/sie.c \
- src/formula.c src/pdf.c
+ src/formula.c src/pdf.c src/invoice.c
VENDOR_OBJ = $(patsubst %.c,$(BUILD)/%.o,$(VENDOR_SRC))
CORE_OBJ = $(patsubst %.c,$(BUILD)/%.o,$(CORE_SRC))
@@ -57,10 +57,17 @@ $(BUILD)/test_pdf: $(BUILD)/tests/pdf_check.o $(BUILD)/src/pdf.o \
$(BUILD)/src/util.o $(BUILD)/vendor/sha256.o
$(CC) $(CFLAGS) -o $@ $^ -lm
-test: check $(BUILD)/test_core $(BUILD)/test_tui $(BUILD)/test_pdf
+$(BUILD)/test_invoice: $(BUILD)/tests/invoice_check.o $(BUILD)/src/invoice.o \
+ $(BUILD)/src/pdf.o $(BUILD)/src/util.o \
+ $(BUILD)/vendor/sha256.o
+ $(CC) $(CFLAGS) -o $@ $^ -lm -lssl -lcrypto
+
+test: check $(BUILD)/test_core $(BUILD)/test_tui $(BUILD)/test_pdf \
+ $(BUILD)/test_invoice
$(BUILD)/test_core
$(BUILD)/test_tui
$(BUILD)/test_pdf
+ $(BUILD)/test_invoice
test-core: $(BUILD)/test_core
$(BUILD)/test_core