diff --git a/README.md b/README.md index 16ede04c17..7bbe4ad320 100644 --- a/README.md +++ b/README.md @@ -144,12 +144,12 @@ be viewed at [https://bind9.readthedocs.io/en/latest/index.html](https://bind9.r The PDF version can be built by running: - cd doc/arm/ - sphinx-build -b latex . pdf/ - make -C pdf/ all-pdf + meson configure build + ninja -C build arm-pdf + make -C build/arm-pdf/ all-pdf The above requires TeX Live in order to work. The PDF will be written to -`doc/arm/pdf/Bv9ARM.pdf`. +`build/arm-pdf/Bv9ARM.pdf`. Man pages for some of the programs in the BIND 9 distribution are also included in the BIND ARM. diff --git a/meson.build b/meson.build index 9720a260b8..31c55913b4 100644 --- a/meson.build +++ b/meson.build @@ -1784,6 +1784,28 @@ if doc_opt.allowed() ], ) + custom_target( + 'arm-pdf', + build_by_default: false, + depend_files: arm_srcconf.sources(), + depends: doc_misc_targets, + output: 'arm-pdf', + env: { + 'BIND_PROJECT_VERSION': meson.project_version(), + 'MESON_BUILD_ROOT': meson.project_build_root(), + 'MESON_SOURCE_ROOT': meson.project_source_root(), + }, + command: [ + sphinx_build, + sphinx_common_options, + '-b', 'latex', + '-d', '@PRIVATE_DIR@', + '-c', '@CURRENT_SOURCE_DIR@' / 'doc' / 'arm', + '@CURRENT_SOURCE_DIR@' / 'doc' / 'arm', + '@OUTPUT@', + ], + ) + custom_target( 'arm-epub', build_by_default: false,