[Spice-commits] 2 commits - docs/Makefile.am docs/meson.build .gitpublish

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 15 13:37:05 UTC 2019


 .gitpublish      |    3 +++
 docs/Makefile.am |   22 +++++++++++++++-------
 docs/meson.build |   12 +++++++-----
 3 files changed, 25 insertions(+), 12 deletions(-)

New commits:
commit 57f2c61712d575be720d9c3380d2ca2f8ebfb5ee
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date:   Fri Jan 11 22:14:24 2019 +0400

    build-sys: improve asciidoc rules to allow multiple targets
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/docs/Makefile.am b/docs/Makefile.am
index 421e5f9..e7e126b 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -1,18 +1,26 @@
 NULL =
-ASCIIDOC_FLAGS = -a icons -a toc
+CLEANFILES =
+
+ASCIIDOC_FILES =				\
+	spice_protocol.txt			\
+	$(NULL)
+
+ASCIIDOC_FLAGS = -n -a icons -a toc
 
 EXTRA_DIST =					\
+	$(ASCIIDOC_FILES)			\
 	meson.build				\
-	spice_protocol.txt			\
 	$(NULL)
 
 if BUILD_HTML_MANUAL
-all-local: spice_protocol.html
+ASCIIDOC_HTML = $(ASCIIDOC_FILES:.txt=.html)
 
-spice_protocol.html: spice_protocol.txt
-	$(AM_V_GEN) $(ASCIIDOC) -n $(ASCIIDOC_FLAGS) -o $@ $<
-endif
+CLEANFILES += $(ASCIIDOC_HTML)
 
-CLEANFILES = spice_protocol.html
+all-local: $(ASCIIDOC_HTML)
+
+.txt.html:
+	$(AM_V_GEN)$(ASCIIDOC) $(ASCIIDOC_FLAGS) -o $@ $<
+endif
 
 -include $(top_srcdir)/git.mk
diff --git a/docs/meson.build b/docs/meson.build
index 5e10d76..8901762 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -1,10 +1,12 @@
 if get_option('manual')
   asciidoc = find_program('asciidoc', required : false)
   if asciidoc.found()
-    custom_target('spice_protocol.html',
-                  input : files('spice_protocol.txt'),
-                  output : 'spice_protocol.html',
-                  build_by_default : true,
-                  command : [asciidoc, '-n', '-a', 'icons', '-a', 'toc', '-o', '@OUTPUT@', '@INPUT@'])
+    foreach f: ['spice_protocol.txt']
+      custom_target('HTML for @0@'.format(f),
+                    input : f,
+                    output : '@BASENAME at .html',
+                    build_by_default : true,
+                    command : [asciidoc, '-n', '-a', 'icons', '-a', 'toc', '-o', '@OUTPUT@', '@INPUT@'])
+    endforeach
   endif
 endif
commit 96700c849d06f295fa1815cc467ae8124040b4b7
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date:   Fri Jan 11 23:02:08 2019 +0400

    Add a .gitpublish
    
    That makes it easier to send patch series for spice-common.
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/.gitpublish b/.gitpublish
new file mode 100644
index 0000000..97e6dba
--- /dev/null
+++ b/.gitpublish
@@ -0,0 +1,3 @@
+[gitpublishprofile "default"]
+to = spice-devel at lists.freedesktop.org
+prefix = PATCH spice-common


More information about the Spice-commits mailing list