summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-04-07 08:28:32 -0300
committerEuAndreh <eu@euandre.org>2024-04-07 08:35:50 -0300
commitd56bf7cae8157f6f75ccc59df1c945603e510f7d (patch)
treec8c87857de8693886b3d3e69e3fbde4ca18d7e76 /Makefile
parentsrc/logerr.c: Also *try* to log something when fprintf() and vfprintf() fail (diff)
downloadpindaiba-d56bf7cae8157f6f75ccc59df1c945603e510f7d.tar.gz
pindaiba-d56bf7cae8157f6f75ccc59df1c945603e510f7d.tar.xz
src/lib.c: Print project metadata on pindaiba_main
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 33cbe67..d5ba524 100644
--- a/Makefile
+++ b/Makefile
@@ -92,9 +92,10 @@ all: $(derived-assets)
lib$(NAME).a: $(sources.o)
$(NAME).a: $(sources.o) src/main.o
-src/config.h: Makefile deps.mk
-$(sources.o) $(tests.o) src/main.o: Makefile deps.mk src/config.h
-tests/slurp.o: tests/slurp.h Makefile deps.mk src/config.h
+src/config.h: Makefile deps.mk
+$(sources.o) $(tests.o): Makefile deps.mk src/config.h
+src/main.o: src/$(NAME).h Makefile deps.mk src/config.h
+tests/slurp.o: Makefile deps.mk src/config.h
$(archives):
@@ -115,7 +116,13 @@ $(tests.bin-check):
check-unit: $(tests.bin-check)
-check-integration:
+integration-tests = \
+ tests/cli-opts.sh \
+
+$(integration-tests): $(NAME).bin ALWAYS
+ sh $@ $(EXEC)$(NAME).bin
+
+check-integration: $(integration-tests)
## Run all tests. Each test suite is isolated, so that a parallel