aboutsummaryrefslogtreecommitdiff
path: root/myrpki/Makefile
blob: e828df711063a897382923548c6ebc5958af07c1 (plain) (blame)
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
# $Id$

all: schema.py

lint: myrpki.xml schema.rng
	xmllint --noout --relaxng schema.rng myrpki.xml

schema.rng: schema.rnc
	trang schema.rnc schema.rng

schema.py: schema.rng
	echo >$@ 'import lxml.etree'
	echo >>$@  -n "myrpki = lxml.etree.RelaxNG(lxml.etree.fromstring('''"
	cat >>$@ schema.rng
	echo >>$@ "'''))"

parse: myrpki.xml schema.py
	python xml-parse-test.py

clean:
	rm -rf *.xml bpki.myrpki bpki.myirbe test screenlog.*
	python sql-cleaner.py

format: myrpki.xml
	xmllint --format myrpki.xml

graph:
	find . -name .svn -prune -o -type d -name 'bpki.*' -print | while read b; do python ../scripts/x509-dot.py $$b | dot -T ps2 | ps2pdf - $$b/graph.pdf; done

verify:
	sh verify-bpki.sh

backup:
	python sql-dumper.py
	tar cvvzf test.$$(TZ='' date +%Y.%m.%d.%H.%M.%S).tgz screenlog.* test backup.*.sql
	rm backup.*.sql

test: schema.py
	python yamltest.py