1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
SUBDIRS ?= $(sort $(wildcard ??-*))
.PHONY: all clean distclean $(SUBDIRS)
all: $(SUBDIRS)
ifdef COVERAGE
cd ../ ; $(COVERAGE) -m unittest
else
cd ../ ; python3 -m unittest
endif
flake8 ../src/foomuuri ../src/tests/
pycodestyle ../src/foomuuri ../src/tests/
pylint ../src/foomuuri ../src/tests/
clean distclean:
rm -f */*.fw
rm -f */iplist-cache.json
rm -f */zone
$(SUBDIRS):
$(COVERAGE) ../src/foomuuri --set=etc_dir=$@ --set=share_dir=../etc --set=state_dir=$@ --set=run_dir=$@ check
diff -u $@/golden.txt $@/next.fw
[ ! -f $@/Makefile ] || $(MAKE) -C $@
|