Harald Welte | 4ff37fe | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 1 | # XSL stylesheets downloaded from http://docbook.sourceforge.net/release/xsl/current/html/ |
| 2 | # Makefile from BitBake/OpenEmbedded manuals |
| 3 | |
| 4 | EXTRA_DEPS = gen-vty-docbook |
| 5 | |
| 6 | topdir = . |
| 7 | pcu_reference = $(topdir)/osmopcu-vty-reference.xml |
| 8 | manuals = $(bts_manual) $(pcu_reference) |
| 9 | # types = pdf txt rtf ps xhtml html man tex texi dvi |
| 10 | # types = pdf txt |
| 11 | types = $(docbooktotypes) |
| 12 | docbooktotypes = pdf |
| 13 | # htmlcssfile = |
| 14 | # htmlcss = |
| 15 | |
| 16 | TOPDIR := .. |
Harald Welte | b682cd6 | 2016-02-29 15:09:55 +0100 | [diff] [blame] | 17 | ASCIIDOCS := osmopcu-usermanual osmopcu-gb |
Harald Welte | 4ff37fe | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 18 | |
| 19 | include $(TOPDIR)/build/Makefile.asciidoc.inc |
| 20 | include $(TOPDIR)/build/Makefile.inc |
| 21 | |
Harald Welte | b682cd6 | 2016-02-29 15:09:55 +0100 | [diff] [blame] | 22 | osmopcu-gb.pdf: gb/*.adoc gb/*.msc |
Harald Welte | 4ff37fe | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 23 | osmopcu-usermanual.pdf: chapters/*.adoc |
| 24 | |
| 25 | clean: |
| 26 | rm -rf $(cleanfiles) |
| 27 | rm -rf gen-vty-docbook |
| 28 | |
| 29 | gen-vty-docbook: FORCE |
| 30 | $(call command,xsltproc -o generated/combined1.xml \ |
| 31 | --stringparam with $(PWD)/../common/vty_additions.xml \ |
| 32 | $(MERGE_DOC) vty/osmo-pcu_vty_reference.xml, \ |
| 33 | XSLTPROC,Merging Common VTY) |
| 34 | $(call command,xsltproc -o generated/combined2.xml \ |
| 35 | --stringparam with $(PWD)/vty/osmo-pcu_vty_additions.xml \ |
| 36 | $(MERGE_DOC) generated/combined1.xml, \ |
| 37 | XSLTPROC,Merging PCU VTY) |
| 38 | $(call command,xsltproc ../vty_reference.xsl generated/combined2.xml > generated/docbook_vty.xml, \ |
| 39 | XSLTPROC,Converting PCU VTY to DocBook) |
| 40 | |
| 41 | |
| 42 | |