summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-06-26 12:33:29 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-05 13:56:36 +0100
commit50674ed689a280d3100c843dfebf5b1f3e9928a4 (patch)
tree6a7f510857a52f70c363b8434a51a22689209a14 /doc
parentdd81768ecb560f6f75483d5b51d278b424ed9c0c (diff)
Use GNU make features to reduce repetition
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48277 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Chengwei Yang <chengwei.yang@intel.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am30
1 files changed, 9 insertions, 21 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index aa5c7e1f..b9a4c106 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,34 +1,22 @@
apidir = @htmldir@/api
-MAN_XML_FILES = \
- dbus-cleanup-sockets.1.xml \
- dbus-daemon.1.xml \
- dbus-launch.1.xml \
- dbus-monitor.1.xml \
- dbus-run-session.1.xml \
- dbus-send.1.xml \
- dbus-uuidgen.1.xml \
- $(NULL)
-
-if DBUS_XML_DOCS_ENABLED
-man1_MANS = \
+man_pages = \
dbus-cleanup-sockets.1 \
dbus-daemon.1 \
dbus-launch.1 \
dbus-monitor.1 \
dbus-run-session.1 \
dbus-send.1 \
- dbus-uuidgen.1
+ dbus-uuidgen.1 \
+ $(NULL)
+
+MAN_XML_FILES = $(patsubst %.1,%.1.xml,$(man_pages))
+
+if DBUS_XML_DOCS_ENABLED
+man1_MANS = $(man_pages)
endif
-MAN_HTML_FILES = \
- dbus-cleanup-sockets.1.html \
- dbus-daemon.1.html \
- dbus-launch.1.html \
- dbus-monitor.1.html \
- dbus-run-session.1.html \
- dbus-send.1.html \
- dbus-uuidgen.1.html
+MAN_HTML_FILES = $(patsubst %.1,%.1.html,$(man_pages))
DTDS = \
busconfig.dtd \