summaryrefslogtreecommitdiff
path: root/data/Makefile.am
blob: 032c33cb44959846323839a0abea0fe406258252 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
SUBDIRS = 						\
	installed-tests					\
	tests

m4datadir = $(datadir)/aclocal
dist_m4data_DATA =					\
	appstream-xml.m4

# ship this obsolete aclocal helper
dist_m4data_DATA +=					\
	appdata-xml.m4

man_MANS =
if ENABLE_MAN
man_MANS +=						\
	appstream-util.1
if HAVE_BUILDER
man_MANS +=						\
	appstream-builder.1
endif
endif

XSLTPROC_FLAGS =					\
	--nonet						\
	--stringparam man.output.quietly 1		\
	--stringparam funcsynopsis.style ansi		\
	--stringparam man.th.extra1.suppress 1		\
	--stringparam man.authors.section.enabled 0	\
	--stringparam man.copyright.section.enabled 0

appstream-util.1: appstream-util.xml
	$(AM_V_GEN) xsltproc $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
if HAVE_BUILDER
appstream-builder.1: appstream-builder.xml
	$(AM_V_GEN) xsltproc $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
endif
bashcompletiondir = @bashcompletiondir@
dist_bashcompletion_DATA = appstream-util
if HAVE_BUILDER
dist_bashcompletion_DATA += appstream-builder
endif

EXTRA_DIST =						\
	appstream-util.xml				\
	appstream-builder.xml

clean-local:
	rm -f *.1
	rm -f manpage.*

CLEANFILES =						\
	appstream-*.1					\
	manpage.*

-include $(top_srcdir)/git.mk