diff options
author | June McEnroe <june@causal.agency> | 2020-04-05 11:08:50 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-05 11:08:50 -0400 |
commit | 28a7c819fedc7188a557b450e5e7b692a9fa991e (patch) | |
tree | 0078bd43d3df691c2e272e9cf502f445c0740931 | |
parent | Add unscoop -n flag for checking regexps (diff) | |
download | litterbox-28a7c819fedc7188a557b450e5e7b692a9fa991e.tar.gz litterbox-28a7c819fedc7188a557b450e5e7b692a9fa991e.zip |
Check unscoop regexps with make test
Diffstat (limited to '')
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 11 |
2 files changed, 10 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore index 66dd2d0..55b8a36 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.o +.test /litterbox /scoop /unscoop 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 |