Addl Fix #742: Add appdata file
[geeqie.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2
3 include $(top_srcdir)/aminclude.am
4
5 SUBDIRS = src po doc plugins
6 DIST_SUBDIRS = src po doc plugins
7
8 man_MANS = geeqie.1
9
10 readmedir = @readmedir@
11
12 if HAVE_MARKDOWN
13 readme_DATA = README.md COPYING ChangeLog TODO README.lirc AUTHORS README.html ChangeLog.html
14 else
15 readme_DATA = README.md COPYING ChangeLog TODO README.lirc AUTHORS ChangeLog.html
16 endif
17
18 desktopdir = $(datadir)/applications
19 desktop_in_files = geeqie.desktop.in
20 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
21 @INTLTOOL_DESKTOP_RULE@
22
23 icondir = $(datadir)/pixmaps
24 icon_DATA = geeqie.png
25
26 # Location defined by freedesktop.org
27 appdatadir = /usr/share/metainfo
28 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
29 appdata_in_files = org.geeqie.Geeqie.appdata.xml.in
30 @INTLTOOL_XML_RULE@
31
32 EXTRA_DIST = \
33         $(readme_DATA)  \
34         $(desktop_in_files)     \
35         $(icon_DATA)    \
36         geeqie.spec.in  \
37         geeqie.1        \
38         doxygen.conf    \
39         $(appdata_in_files)
40
41 dist-hook: geeqie.spec
42         cp $(top_builddir)/geeqie.spec $(distdir)
43
44 DISTCLEANFILES = config.report
45 CLEANFILES = $(desktop_DATA) ChangeLog.html $(appdata_DATA)
46
47 .PHONY: ChangeLog
48 ChangeLog.html:
49         ./gen_changelog.sh
50
51 README.html: README.md
52         ./gen_readme.sh