-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
55 lines (37 loc) · 992 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
VENV2= venv2
VENV3= venv3
PYTHON2= python2.7
PYTHON3= python3.5
DISTDIRS= *.egg-info build dist
TMPFILES= ksk-as-{dnskey,ds}.txt \
all:
lint:
$(VENV3)/bin/pylint --reports=no *.py
wheel:
python setup.py bdist_wheel
venv: $(VENV2) $(VENV3)
$(VENV2):
virtualenv -p $(PYTHON2) $(VENV2)
$(VENV3):
virtualenv -p $(PYTHON3) $(VENV3)
test: test2 test3
test2: $(VENV2)
(. $(VENV2)/bin/activate; $(MAKE) regress2_offline regress2_online)
test3: $(VENV3)
(. $(VENV3)/bin/activate; $(MAKE) regress3_offline regress3_online)
regress2_offline:
python -m py_compile get_trust_anchor.py
regress2_online:
python get_trust_anchor.py
diff -u regress/ksk-as-dnskey.txt ksk-as-dnskey.txt
diff -u regress/ksk-as-ds.txt ksk-as-ds.txt
regress3_online: regress2_online
python -m py_compile get_trust_anchor.py
regress3_offline:
python -m py_compile get_trust_anchor.py
clean:
rm -fr $(DISTDIRS)
rm -f $(TMPFILES)
rm -fr __pycache__ *.pyc
realclean: clean
rm -rf $(VENV2) $(VENV3)