Squashed 'third_party/pycrc/' content from commit cb91196b9
Change-Id: Iaed6f7d683e3c11395f10f0724f973363aad2cdb
git-subtree-dir: third_party/pycrc
git-subtree-split: cb91196b920d1f892c05941ed470c7a80cba7596
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 0000000..a0f2581
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,24 @@
+HTML_PARAMS = style-html.xsl
+MAN_PARAMS = style-man.xsl
+
+source = pycrc.xml
+targets = $(source:.xml=.html) $(source:.xml=.1)
+
+all: $(targets)
+
+.PHONY: clean
+clean:
+ $(RM) $(targets)
+
+.PHONY: check
+check:
+ xmllint --valid --noout $(source)
+
+%.html: %.xml $(HTML_PARAMS)
+ saxon-xslt -o $@ $^
+
+%.1: %.xml $(MAN_PARAMS)
+ saxon-xslt -o $@ $^
+
+%.txt: %.html
+ links -dump -no-numbering -no-references $< > $@