File: Makefile

package info (click to toggle)
foomuuri 0.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 856 kB
  • sloc: python: 4,075; makefile: 126; sh: 39
file content (23 lines) | stat: -rw-r--r-- 572 bytes parent folder | download
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 $@