summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--man/meson.build30
-rw-r--r--meson_options.txt3
2 files changed, 24 insertions, 9 deletions
diff --git a/man/meson.build b/man/meson.build
index 6efec40695..9d8d1a9922 100644
--- a/man/meson.build
+++ b/man/meson.build
@@ -133,12 +133,24 @@ foreach tuple : [['systemd.directives', '7', systemd_directives_xml],
html_pages += [p2]
endforeach
-custom_target('man',
- depends : man_pages,
- output : ['man'],
- command : ['echo'])
-
-custom_target('html',
- depends : html_pages,
- output : ['html'],
- command : ['echo'])
+man = custom_target('man',
+ depends : man_pages,
+ output : 'man',
+ command : ['echo'])
+
+html = custom_target('html',
+ depends : html_pages,
+ output : 'html',
+ command : ['echo'])
+
+custom_target('doc-sync',
+ depends : [man, html],
+ output : ['doc-sync'],
+ command : ['rsync', '-rlv',
+ '--delete-excluded',
+ '--include=man',
+ '--include=*.html',
+ '--exclude=*',
+ '--omit-dir-times',
+ meson.current_build_dir(),
+ get_option('www-target')])
diff --git a/meson_options.txt b/meson_options.txt
index 005fd0e992..9caf9a329f 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -154,6 +154,9 @@ option('ntp-servers', type : 'string',
option('support-url', type : 'string',
description : 'the support URL to show in catalog entries included in systemd',
value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
+option('www-target', type : 'string',
+ description : 'the address and dir to upload docs too',
+ value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
description : 'SECCOMP support')