summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Makefile.am')
-rw-r--r--tools/Makefile.am43
1 files changed, 2 insertions, 41 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 1500a67..2c47385 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -1,3 +1,5 @@
+SUBDIRS=doc
+
bin_PROGRAMS = amqp-publish amqp-get amqp-consume amqp-declare-queue amqp-delete-queue
AM_CFLAGS = -I$(top_srcdir)/librabbitmq
@@ -12,44 +14,3 @@ amqp_get_SOURCES = get.c common.c
amqp_consume_SOURCES = consume.c common.c
amqp_declare_queue_SOURCES = declare_queue.c common.c
amqp_delete_queue_SOURCES = delete_queue.c common.c
-
-EXTRA_DIST = \
- doc/publish.xml \
- doc/consume.xml \
- doc/get.xml \
- doc/declare_queue.xml \
- doc/delete_queue.xml \
- doc/librabbitmq-tools.xml
-
-if TOOLS_DOC
-man_MANS = \
- doc/amqp-publish.1 \
- doc/amqp-consume.1 \
- doc/amqp-get.1 \
- doc/amqp-declare-queue.1 \
- doc/amqp-delete-queue.1 \
- doc/librabbitmq-tools.7
-MOSTLYCLEANFILES = doc/man-date.ent
-
-# automake complains about % pattern rules, and suffix rules don't
-# support multiple dependencies, so we have to expand all these out.
-doc/amqp-publish.1: doc/publish.xml doc/man-date.ent
- $(XMLTO) man -o doc $<
-doc/amqp-consume.1: doc/consume.xml doc/man-date.ent
- $(XMLTO) man -o doc $<
-doc/amqp-get.1: doc/get.xml doc/man-date.ent
- $(XMLTO) man -o doc $<
-doc/amqp-declare-queue.1: doc/declare_queue.xml doc/man-date.ent
- $(XMLTO) man -o doc $<
-doc/amqp-delete-queue.1: doc/delete_queue.xml doc/man-date.ent
- $(XMLTO) man -o doc $<
-doc/librabbitmq-tools.7: doc/librabbitmq-tools.xml doc/man-date.ent
- $(XMLTO) man -o doc $<
-
-doc/man-date.ent:
- date +'%Y-%m-%d' >$@
-
-clean::
- rm -f doc/man-date.ent
-
-endif