diff options
Diffstat (limited to 'tools/Makefile.am')
-rw-r--r-- | tools/Makefile.am | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am index dc9603b..307fbd2 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -10,3 +10,26 @@ noinst_HEADERS = common.h amqp_publish_SOURCES = publish.c common.c amqp_get_SOURCES = get.c common.c amqp_consume_SOURCES = consume.c common.c + +if TOOLS_DOC +man_MANS = doc/amqp-publish.1 doc/amqp-consume.1 doc/amqp-get.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/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 |