summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5db0edd..ed2dbdd 100644
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,10 @@ RCS  = rc.d/litterbox
 
 -include config.mk
 
+FORMATS = generic catgirl irc textual
 OBJS_litterbox = litterbox.o config.o
 
-dev: tags all
+dev: tags all test
 
 all: ${BINS}
 
@@ -26,11 +27,17 @@ litterbox: ${OBJS_litterbox}
 
 ${BINS:=.o}: database.h
 
+test: .test
+
+.test: unscoop
+	set -e; for format in ${FORMATS}; do ./unscoop -n -f $$format; done
+	touch .test
+
 tags: *.c *.h
 	ctags -w *.c *.h
 
 clean:
-	rm -f tags ${BINS} ${OBJS_litterbox} ${BINS:=.o}
+	rm -f .test tags ${BINS} ${OBJS_litterbox} ${BINS:=.o}
 
 install: ${BINS} ${MANS}
 	install -d ${PREFIX}/bin ${MANDIR}/man1