summaryrefslogtreecommitdiffstats
path: root/abs/core/local-website/htdocs/mythtv-doc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/local-website/htdocs/mythtv-doc/Makefile')
-rw-r--r--abs/core/local-website/htdocs/mythtv-doc/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/abs/core/local-website/htdocs/mythtv-doc/Makefile b/abs/core/local-website/htdocs/mythtv-doc/Makefile
new file mode 100644
index 0000000..0368fd2
--- /dev/null
+++ b/abs/core/local-website/htdocs/mythtv-doc/Makefile
@@ -0,0 +1,42 @@
+# To build this stuff, you need the linuxdoc tools and htmldoc. On Debian,
+# this means: linuxdoc-tools linuxdoc-tools-text htmldoc
+#
+# - mdz
+
+TARGETS = mythtv-HOWTO.txt mythtv-HOWTO.html mythtv-HOWTO-singlehtml.html mythtv-HOWTO.pdf index.html
+LINUXDOC_HTML_SPLIT := 1
+
+all: $(TARGETS)
+clean:
+ rm -f $(TARGETS) $(patsubst %.html,%-[0-9]*.html,$(filter %.html,$(TARGETS)))
+ rm -Rf doxygen-dev-docs doxygen-warnings.txt
+
+distclean: clean
+
+validate: mythtv-HOWTO.sgml
+ linuxdoc -B check $<
+
+%.txt: %.sgml
+ linuxdoc -B txt $<
+
+# Generate PDF via LaTeX using linuxdoc
+#%.pdf: %.sgml
+# linuxdoc -B latex -o pdf $<
+
+# Generate PDF via HTML using htmldoc
+%.pdf: %-singlehtml.html
+ # htmldoc exits unsuccessfully for no good reason -mdz
+ htmldoc --book --quiet --outfile $@ $< || true
+
+%.html: %.sgml
+ linuxdoc -B html --split=$(LINUXDOC_HTML_SPLIT) --toc=2 $<
+
+%-singlehtml.html: LINUXDOC_HTML_SPLIT=0
+%-singlehtml.sgml: %.sgml
+ cp $< $@
+
+index.html: mythtv-HOWTO.html
+ cp $< $@
+
+devdocs:
+ doxygen doxygen-create-developer-docs.cfg