'dnsdist.conf-dist',
install_dir : get_option('sysconfdir'),
follow_symlinks: true
-)
\ No newline at end of file
+)
+
+html_docs = custom_target(
+ 'html-docs',
+ command: [
+ python,
+ product_source_dir / docs_dir / 'generate-docs.py',
+ '--build-root', '@BUILD_ROOT@',
+ '--source-root', '@SOURCE_ROOT@',
+ '--venv-name', 'venv-docs',
+ '--requirements-file', docs_dir / 'requirements.txt',
+ '--source-directory', docs_dir,
+ '--target-directory', '@BUILD_ROOT@' / 'html-docs',
+ ],
+ output: 'html-docs',
+ console: true,
+)
+
+docs_tarball = custom_target(
+ 'html-docs.tar.bz2',
+ command: ['tar', 'cjf', 'html-docs.tar.bz2', html_docs],
+ output: 'html-docs.tar.bz2',
+)
+
+latex_docs = custom_target(
+ command: [
+ python,
+ product_source_dir / docs_dir / 'generate-docs.py',
+ '--build-root', '@BUILD_ROOT@',
+ '--source-root', '@SOURCE_ROOT@',
+ '--venv-name', 'venv-docs',
+ '--requirements-file', docs_dir / 'requirements.txt',
+ '--source-directory', docs_dir,
+ '--target-directory', '@BUILD_ROOT@',
+ '--latex-name', 'dnsdist.pdf',
+ ],
+ output: 'dnsdist.pdf',
+ console: true,
+)
+
+run_target(
+ 'all-docs',
+ command: ['echo', html_docs, docs_tarball, latex_docs],
+)