aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e584298..d9a5b10 100644
--- a/Makefile
+++ b/Makefile
@@ -81,6 +81,15 @@ doc: $(BUILTMAN)
%.3: %.3.sh
sh $< >$@
+TESTSOURCES=$(wildcard t/*.c)
+TESTFILES=$(TESTSOURCES:.c=.t)
+
+t/%.t: t/%.c $(LIBRARY)
+ $(LIBTOOL) --mode=link --tag=CC gcc -o $@ $^
+
+test: $(TESTFILES)
+ prove -e ""
+
clean: clean-built
clean-built: