summaryrefslogtreecommitdiff
path: root/data/Makefile.am
blob: 5325046a5345c74e5b47081ed91b02421593454f (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
56
57
58
59
60
61
62
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				\
	appstream-compose.1
if HAVE_BUILDER
man_MANS +=						\
	appstream-builder.1
endif
endif

itsdatadir = $(datadir)/gettext/its
dist_itsdata_DATA = appdata.its appdata.loc

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 $<
appstream-compose.1: appstream-compose.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-compose.xml				\
	appstream-util.xml				\
	appstream-builder.xml

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

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

-include $(top_srcdir)/git.mk