Harald Welte | 8a1e7b8 | 2017-09-06 12:35:04 +0200 | [diff] [blame] | 1 | # XSL stylesheets downloaded from http://docbook.sourceforge.net/release/xsl/current/html/ |
| 2 | # Makefile from BitBake/OpenEmbedded manuals |
| 3 | |
Harald Welte | f0fb2c2 | 2017-09-07 01:02:04 +0200 | [diff] [blame] | 4 | EXTRA_DEPS = gen-ggsn-vty-docbook |
| 5 | |
| 6 | topdir = . |
| 7 | ggsn_reference = $(topdir)/osmoggsn-vty-reference.xml |
| 8 | manuals = $(ggsn_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 | |
Harald Welte | 8a1e7b8 | 2017-09-06 12:35:04 +0200 | [diff] [blame] | 16 | TOPDIR := .. |
| 17 | ASCIIDOCS := osmoggsn-usermanual |
| 18 | |
| 19 | include $(TOPDIR)/build/Makefile.asciidoc.inc |
| 20 | include $(TOPDIR)/build/Makefile.inc |
| 21 | |
| 22 | osmoggsn-usermanual.pdf: chapters/*.adoc |
| 23 | |
| 24 | clean: |
Harald Welte | f0fb2c2 | 2017-09-07 01:02:04 +0200 | [diff] [blame] | 25 | -rm -rf $(cleanfiles) |
| 26 | -rm osmoggsn-usermanual__*.svg osmoggsn-usermanual__*.png |
| 27 | -rm osmoggsn-usermanual.check |
| 28 | |
| 29 | gen-ggsn-vty-docbook: FORCE |
| 30 | $(call command,xsltproc -o generated/combined1.xml \ |
| 31 | --stringparam with $(PWD)/../common/vty_additions.xml \ |
| 32 | $(MERGE_DOC) vty/ggsn_vty_reference.xml, \ |
| 33 | XSLTPROC,Merging Common VTY) |
| 34 | $(call command,xsltproc -o generated/combined2.xml \ |
| 35 | --stringparam with $(PWD)/vty/ggsn_vty_additions.xml \ |
| 36 | $(MERGE_DOC) generated/combined1.xml, \ |
| 37 | XSLTPROC,Merging GGSN VTY) |
| 38 | $(call command,xsltproc ../vty_reference.xsl generated/combined2.xml > generated/docbook_vty.xml, \ |
| 39 | XSLTPROC,Converting GGSN VTY to DocBook) |