Some command line options are not GNU/POSIX compliant (3)
[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 if EXTERNAL_PREFIX
28 appdatadir = $(datadir)/metainfo
29 else
30 appdatadir = /usr/share/metainfo
31 endif
32 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
33 appdata_in_files = org.geeqie.Geeqie.appdata.xml.in
34 @INTLTOOL_XML_RULE@
35
36 EXTRA_DIST = \
37         $(readme_DATA)  \
38         $(desktop_in_files)     \
39         $(icon_DATA)    \
40         geeqie.spec.in  \
41         geeqie.1        \
42         doxygen.conf    \
43         $(appdata_in_files)
44
45 dist-hook: geeqie.spec
46         cp $(top_builddir)/geeqie.spec $(distdir)
47
48 DISTCLEANFILES = config.report
49 CLEANFILES = $(desktop_DATA) ChangeLog.html $(appdata_DATA)
50
51 .PHONY: ChangeLog
52 ChangeLog.html:
53         ./gen_changelog.sh
54
55 README.html: README.md
56         ./gen_readme.sh