[3/4] doc: put doxygen output into $publican_sources

Submitted by Bill Spitzak on Dec. 6, 2014, 3:04 a.m.

Details

Message ID 1417835048-36511-4-git-send-email-spitzak@gmail.com
State Superseded
Headers show

Not browsing as part of any series.

Commit Message

Bill Spitzak Dec. 6, 2014, 3:04 a.m.
This removes the need to name them multiple times
---
 doc/publican/Makefile.am |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

Patch hide | download patch | download mbox

diff --git a/doc/publican/Makefile.am b/doc/publican/Makefile.am
index c9a6274..d4514cc 100644
--- a/doc/publican/Makefile.am
+++ b/doc/publican/Makefile.am
@@ -28,7 +28,11 @@  publican_sources = \
 	$(srcdir)/sources/images/icon.svg  \
 	$(srcdir)/sources/images/wayland-architecture.png \
 	$(srcdir)/sources/images/wayland.png  \
-	$(srcdir)/sources/images/x-architecture.png
+	$(srcdir)/sources/images/x-architecture.png \
+	en-US/ProtocolSpec.xml \
+	en-US/ProtocolInterfaces.xml \
+	en-US/WaylandClientAPI.xml \
+	en-US/WaylandServerAPI.xml
 
 css_sources = \
 	$(srcdir)/sources/css/brand.css \
@@ -63,9 +67,7 @@  Wayland: $(publican_targets)
 
 pubdir = $(docdir)/Wayland/en-US
 
-publican_targets = $(publican_sources:$(srcdir)/sources%=$(builddir)/en-US%) \
-	en-US/ProtocolSpec.xml en-US/ProtocolInterfaces.xml \
-	en-US/WaylandClientAPI.xml en-US/WaylandServerAPI.xml
+publican_targets = $(publican_sources:$(srcdir)/sources%=$(builddir)/en-US%)
 
 # The Protocol.xml is purely generated and required before running publican
 en-US/ProtocolSpec.xml: $(top_srcdir)/protocol/wayland.xml $(srcdir)/protocol-to-docbook.xsl
@@ -104,11 +106,11 @@  en-US/WaylandServerAPI.xml: en-US/serverAPI.xml.tmp $(srcdir)/doxygen-to-publica
 # Copy the sources source files into en-US destination
 # This is required for out-of-source-tree build as publican does not allow us
 # to specify the location of the source code.
-$(builddir)/en-US/%: $(srcdir)/sources/% en-US/ProtocolSpec.xml en-US/ProtocolInterfaces.xml en-US/WaylandClientAPI.xml $(publican_sources)
+$(builddir)/en-US/%: $(srcdir)/sources/% $(publican_sources)
 	$(AM_V_GEN)cp -f $< $@
 	$(AM_V_GEN)chmod a+w $@
 
-CLEANFILES = en-US/ProtocolSpec.xml en-US/ProtocolInterfaces.xml en-US/WaylandClientAPI.xml $(publican_targets)
+CLEANFILES = $(publican_targets)
 
 clean-local:
 	$(AM_V_at)rm -fr $(builddir)/en-US