summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
blob: 307fbd2a67886caee97dfdd0ab9b27366e18c154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
bin_PROGRAMS = amqp-publish amqp-get amqp-consume

AM_CFLAGS = -I$(top_srcdir)/librabbitmq
AM_LDFLAGS = $(top_builddir)/librabbitmq/librabbitmq.la

LDADD=$(LIBPOPT)

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