aboutsummaryrefslogtreecommitdiff
path: root/rpkid.with_tls/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'rpkid.with_tls/Makefile')
-rw-r--r--rpkid.with_tls/Makefile109
1 files changed, 109 insertions, 0 deletions
diff --git a/rpkid.with_tls/Makefile b/rpkid.with_tls/Makefile
new file mode 100644
index 00000000..541ed433
--- /dev/null
+++ b/rpkid.with_tls/Makefile
@@ -0,0 +1,109 @@
+# $Id$
+
+all: rpki/relaxng.py myrpki.rng
+
+rpki/relaxng.py: ../scripts/make-relaxng.py left-right-schema.rng up-down-schema.rng publication-schema.rng
+ python ../scripts/make-relaxng.py >$@.tmp
+ mv $@.tmp $@
+
+left-right-schema.rng: left-right-schema.rnc
+ trang left-right-schema.rnc left-right-schema.rng
+
+up-down-schema.rng: up-down-schema.rnc
+ trang up-down-schema.rnc up-down-schema.rng
+
+publication-schema.rng: publication-schema.rnc
+ trang publication-schema.rnc publication-schema.rng
+
+myrpki.rng: myrpki.rnc
+ trang myrpki.rnc myrpki.rng
+
+clean:
+ find . -type f -name '*.pyc' -delete
+ cd tests; $(MAKE) $@
+
+install:
+ @true
+
+dont-run-trang:
+ touch *.rng
+
+relaxng: left-right-schema.rng up-down-schema.rng publication-schema.rng
+ cd tests; $(MAKE) protocol-samples
+ xmllint --noout --relaxng left-right-schema.rng tests/left-right-protocol-samples/*.xml
+ xmllint --noout --relaxng up-down-schema.rng tests/up-down-protocol-samples/*.xml
+ xmllint --noout --relaxng publication-schema.rng tests/publication-protocol-samples/*.xml
+
+unit-tests: all
+ PWD=`pwd`; for i in rpki/*.py; do echo "[$$i]"; PYTHONPATH=$$PWD python $$i; done
+
+all-tests:: unit-tests
+
+all-tests:: relaxng
+
+test all-tests parse-test profile yamltest::
+ cd tests; $(MAKE) $@
+
+
+irbe_cli.usage: irbe_cli.py
+ python irbe_cli.py --help | sed 's/^/ /' >$@
+
+tags:
+ find . -type f \( -name '*.py' -o -name '*.sql' -o -name '*.rnc' \) ! -name relaxng.py | etags -
+
+lint:
+ pylint --rcfile ../scripts/pylint.rc rpki/[a-z]*.py irbe_cli.py irdbd.py pubd.py rootd.py rpkid.py tests/smoketest.py tests/testpoke.py ../myrpki/myrpki.py ../myrpki/yamltest.py
+
+# Documentation
+
+doc/irdbd.dot: irdbd.sql
+ sh ../scripts/graphviz-sql.sh $? >$@
+
+doc/pubd.dot: pubd.sql
+ sh ../scripts/graphviz-sql.sh $? >$@
+
+doc/rpkid.dot: rpkid.sql
+ sh ../scripts/graphviz-sql.sh $? >$@
+
+.SUFFIXES: .dot .png .pdf .eps
+
+.dot.pdf:
+ dot -Tps2 $? | ps2pdf - $@
+
+.dot.eps:
+ dot -o $@ -Teps $?
+
+.dot.png:
+ dot -o $@ -Tpng $?
+
+TEXT_DOCS = Installation Configuration Left-Right Publication MySQL-Setup MyRPKI
+
+dot: doc/irdbd.dot doc/pubd.dot doc/rpkid.dot
+
+eps: doc/irdbd.eps doc/pubd.eps doc/rpkid.eps doc/rpkid-bpki.eps doc/pubd-bpki.eps
+
+png: doc/irdbd.png doc/pubd.png doc/rpkid.png doc/rpkid-bpki.png doc/pubd-bpki.png
+
+docclean:
+ rm -rf doc/html doc/latex doc/xml
+
+html: dot eps png
+ TZ='' doxygen
+
+tgz: html
+ cd doc && tar -cf - html | gzip -9 >manual.tar.gz
+
+text: html
+ for i in ${TEXT_DOCS}; do \
+ xsltproc --html doc/tweak-doc.xsl doc/html/$$i.html | \
+ html2text -rcfile doc/html2textrc -nobs -ascii | \
+ awk -f doc/tweak-doc.awk >doc/$$i; \
+ done 2>&1 | \
+ awk -f doc/suppress-html-parse-errors.awk 1>&2
+
+pdf: doc/irdbd.pdf doc/pubd.pdf doc/rpkid.pdf doc/rpkid-bpki.pdf doc/pubd-bpki.pdf
+
+pdf: html
+ cd doc/latex && TZ='' ${MAKE} && ln -f refman.pdf ../manual.pdf
+
+docs: dot eps png html text tgz pdf