.PHONY: all clean realclean distclean dist install
PACKAGE:=secnet
-VERSION=0.4.5
+VERSION=0.5.0
VPATH:=@srcdir@
-
+srcdir:=@srcdir@
include common.make
INSTALL:=@INSTALL@
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
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
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 \