summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
blob: dd5bdd8966710a51473da06f3a1abdcee07ed9d8 (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
36
37
38
39
40
noinst_PROGRAMS = \
	evemu-echo

bin_PROGRAMS = \
	evemu-describe \
	evemu-device \
	evemu-record \
	evemu-play \
	evemu-event

INCLUDES=-I$(top_srcdir)/include/

AM_LDFLAGS = $(top_builddir)/src/libevemu.la

evemu_describe_SOURCES = evemu-record.c

# man page generation
if HAVE_DOCTOOLS
# actual man pages
man_pages_sources = evemu-describe.txt evemu-device.txt
# shadow man pages
man_pages_shadows = evemu-record.1 evemu-play.1 evemu-event.1

man_pages = $(man_pages_sources:.txt=.1) $(man_pages_shadows)

$(man_pages_shadows): $(man_pages_sources:.txt=.1)

SUFFIXES = .1 .txt .xml

.xml.1:
	$(AM_V_GEN)$(XMLTO) man $<

.txt.xml:
	$(AM_V_GEN)$(ASCIIDOC) -b docbook -d manpage -o $@ $<

EXTRA_DIST = $(man_pages_sources)
dist_man_MANS = $(man_pages)
CLEANFILES = $(dist_man_MANS)
MAINTAINERCLEANFILES = $(man_pages) *.xml
endif