diff --git a/doc/Jamfile b/doc/Jamfile index 0cf90be..e4c8638 100644 --- a/doc/Jamfile +++ b/doc/Jamfile @@ -26,6 +26,57 @@ else if [ os.name ] = LINUX import boostbook ; +make xml/index.xml + : + reference.dox + : + @call-doxygen + ; + +# combine.xslt is generated after using doxygen but bjam is unaware of it +make xml/combine.xslt + : + xml/index.xml + : + @null-action + ; + +make xml/all.xml + : + xml/combine.xslt + xml/index.xml + : + @call-xsltproc + ; + +make reference.qbk + : + reference.xsl + xml/all.xml + : + @call-xsltproc + ; + +# We have to make a copy of reference.qbk and put it +# in a place where the static .qbk files can find it +install qbk/reference : reference.qbk ; + + +actions null-action +{ + # the action is used with "make" rule to make bjam aware that a file exists +} + +actions call-doxygen +{ + doxygen $(2) +} + +actions call-xsltproc +{ + xsltproc $(2) > $(1) +} + install stylesheets : $(BOOST_ROOT)3rdParty/boost-doc/style/boostbook.css @@ -57,7 +108,7 @@ xml async_mqtt5_doc : qbk/00_main.qbk : - qbk/reference/reference.qbk + reference.qbk images ; diff --git a/doc/doxy2qbk.sh b/doc/doxy2qbk.sh deleted file mode 100644 index d5dc687..0000000 --- a/doc/doxy2qbk.sh +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/bash - -doxygen reference.dox -cd xml -xsltproc combine.xslt index.xml > all.xml -cd .. -xsltproc reference.xsl xml/all.xml > qbk/reference/reference.qbk -rm -rf xml diff --git a/doc/reference.dox b/doc/reference.dox index 7367054..b70c961 100644 --- a/doc/reference.dox +++ b/doc/reference.dox @@ -5,7 +5,7 @@ #--------------------------------------------------------------------------- PROJECT_NAME = "async_mqtt5 reference" PROJECT_NUMBER = -OUTPUT_DIRECTORY = . +OUTPUT_DIRECTORY = ./bin CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English BRIEF_MEMBER_DESC = YES