Neels Hofmeyr | 8c8ebb1 | 2017-09-18 16:19:30 +0200 | [diff] [blame^] | 1 | # XSL stylesheets downloaded from http://docbook.sourceforge.net/release/xsl/current/html/ |
| 2 | # Makefile from BitBake/OpenEmbedded manuals |
| 3 | |
| 4 | topdir = . |
| 5 | msc_reference = $(topdir)/osmomsc-vty-reference.xml |
| 6 | manuals = $(msc_reference) |
| 7 | # types = pdf txt rtf ps xhtml html man tex texi dvi |
| 8 | # types = pdf txt |
| 9 | types = $(docbooktotypes) |
| 10 | docbooktotypes = pdf |
| 11 | # htmlcssfile = |
| 12 | # htmlcss = |
| 13 | |
| 14 | TOPDIR := .. |
| 15 | ASCIIDOCS := osmomsc-usermanual |
| 16 | |
| 17 | include $(TOPDIR)/build/Makefile.asciidoc.inc |
| 18 | include $(TOPDIR)/build/Makefile.inc |
| 19 | |
| 20 | osmomsc-usermanual.pdf: chapters/*.adoc generated/docbook_vty.xml |
| 21 | |
| 22 | clean: |
| 23 | -rm -rf $(cleanfiles) |
| 24 | -rm osmomsc-usermanual__*.svg |
| 25 | -rm osmomsc-usermanual__*.png |
| 26 | -rm osmomsc-usermanual.check |
| 27 | |
| 28 | generated/docbook_vty.xml: osmomsc-vty-reference.xml vty/*xml ../common/vty_additions.xml ../vty_reference.xsl |
| 29 | $(call command,xsltproc -o generated/combined1.xml \ |
| 30 | --stringparam with $(PWD)/../common/vty_additions.xml \ |
| 31 | $(MERGE_DOC) vty/msc_vty_reference.xml, \ |
| 32 | XSLTPROC,Merging Common VTY) |
| 33 | $(call command,xsltproc -o generated/combined2.xml \ |
| 34 | --stringparam with $(PWD)/../common/bsc_vty_additions.xml \ |
| 35 | $(MERGE_DOC) generated/combined1.xml, \ |
| 36 | XSLTPROC,Merging Common BSC VTY) |
| 37 | $(call command,xsltproc -o generated/combined3.xml \ |
| 38 | --stringparam with $(PWD)/vty/msc_vty_additions.xml \ |
| 39 | $(MERGE_DOC) generated/combined2.xml, \ |
| 40 | XSLTPROC,Merging MSC VTY) |
| 41 | $(call command,xsltproc ../vty_reference.xsl generated/combined3.xml > generated/docbook_vty.xml, \ |
| 42 | XSLTPROC,Converting MSC VTY to DocBook) |