aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-03-31 12:11:19 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-03-31 12:11:19 +0100
commit3bbda921b7180340ccc50c1a8a2bf01631508f36 (patch)
tree787f87e96597293bff639162ccb4a67c59fcb8eb /Makefile
parent620038af7274a338160e9ad0a787cc21e4fc64ea (diff)
downloadtermo-3bbda921b7180340ccc50c1a8a2bf01631508f36.tar.gz
termo-3bbda921b7180340ccc50c1a8a2bf01631508f36.tar.xz
termo-3bbda921b7180340ccc50c1a8a2bf01631508f36.zip
Created a little Test::More-like library for TAP testing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d9a5b10..da19c7f 100644
--- a/Makefile
+++ b/Makefile
@@ -81,12 +81,15 @@ doc: $(BUILTMAN)
%.3: %.3.sh
sh $< >$@
-TESTSOURCES=$(wildcard t/*.c)
+TESTSOURCES=$(wildcard t/[0-9]*.c)
TESTFILES=$(TESTSOURCES:.c=.t)
-t/%.t: t/%.c $(LIBRARY)
+t/%.t: t/%.c $(LIBRARY) t/taplib.lo
$(LIBTOOL) --mode=link --tag=CC gcc -o $@ $^
+t/taplib.lo: t/taplib.c
+ $(LIBTOOL) --mode=compile --tag=CC gcc $(CFLAGS) -o $@ -c $^
+
test: $(TESTFILES)
prove -e ""