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