chiark / gitweb /
changelog: finalise 0.5.0
[secnet.git] / Makefile.in
index 0fd17f71087f7688e1e5fde51ee115c73e9d21bf..9409b507d1685b47a8c6effe562d31bd1709c29b 100644 (file)
@@ -20,7 +20,7 @@
 .PHONY:        all clean realclean distclean dist install
 
 PACKAGE:=secnet
-VERSION=0.4.5
+VERSION=0.5.0
 
 VPATH:=@srcdir@
 srcdir:=@srcdir@
@@ -131,9 +131,21 @@ secnet: Makefile .git/HEAD $(shell sed -n 's#^ref: #.git/#p' .git/HEAD)
 secnet: $(wildcard .git/packed-refs)
 endif
 
-check: eax-aes-test.confirm eax-serpent-test.confirm \
+TESTDIRS=stest mtest
+
+FAST_CHECKS= eax-aes-test.confirm eax-serpent-test.confirm \
        eax-serpentbe-test.confirm check-ipaddrset \
-       msgcode-test.confirm check-stest
+       $(addprefix check-,$(TESTDIRS))
+
+CHECKS += $(FAST_CHECKS)
+CHECKS += msgcode-test.confirm
+
+check: $(CHECKS)
+
+recheck:
+       rm -f $(FAST_CHECKS)
+       rm -rf $(addsuffix /d-*, $(TESTDIRS))
+       $(MAKE) check
 
 version.c: Makefile
        echo "#include \"secnet.h\"" >$@.new
@@ -167,6 +179,9 @@ check-ipaddrset: ipaddrset-test.py ipaddrset.py ipaddrset-test.expected
 check-stest: secnet test-example/sites.conf
        $(MAKE) -C stest check
 
+check-mtest: make-secnet-sites ipaddrset.py
+       $(MAKE) -C mtest check
+
 test-example/sites.conf:
        $(MAKE) -C test-example
 
@@ -197,11 +212,15 @@ install-force:
        rm -f $(STALE_PYTHON_FILES)
        $(MAKE) install
 
-clean:
+clean: $(addprefix clean-,$(TESTDIRS))
        $(RM) -f *.o *.yy.[ch] *.tab.[ch] $(TARGETS) core version.c
        $(RM) -f *.d *.pyc *~ eax-*-test.confirm eax-*-test
+       $(RM) -rf __pycache__
        $(RM) -f msgcode-test.confirm msgcode-test
 
+$(addprefix clean-,$(TESTDIRS)): clean-%:
+       $(MAKE) -C $* clean
+
 realclean:     clean
        $(RM) -f *~ Makefile config.h  *.d \
        config.log config.status config.cache \