Added appdata helper file - http://people.freedesktop.org/~hughsient/appdata/
[claws.git] / Makefile.am
1 # Makefile.am for toplevel directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 ACLOCAL_AMFLAGS = -I m4
6 AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
7
8 SUBDIRS = m4 po src tools config doc manual
9
10 EXTRA_DIST = \
11         ChangeLog \
12         ChangeLog.gtk1 \
13         ChangeLog.pre2.0.0 \
14         ChangeLog.2.0.0-3.0.0 \
15         ChangeLog.3.0.0-3.9.0 \
16         RELEASE_NOTES \
17         claws-mail-128x128.png \
18         claws-mail-64x64.png \
19         claws-mail.pc.in \
20         claws-mail.desktop \
21         claws-mail.png \
22         claws-mail.appdata.xml \
23         autogen.sh \
24         claws-features.h.in \
25         version
26
27 # hicolor icon theme, base class of all icon themes
28 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
29 pixmap_DATA=claws-mail.png
30
31 pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
32 pixmap64_DATA=claws-mail-64x64.png
33
34 pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
35 pixmap128_DATA=claws-mail-128x128.png
36
37 # when changing the name or location of the .desktop file,
38 # also update src/common/Makefile.am
39 gnomapdir = $(datadir)/applications
40 gnomap_DATA=claws-mail.desktop
41
42 appdatadir=$(datadir)/appdata
43 appdata_DATA = claws-mail.appdata.xml
44
45 rename-icons:
46         @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
47             mv claws-mail-64x64.png claws-mail.png
48         @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
49             mv claws-mail-128x128.png claws-mail.png
50
51 remove-icons:
52         rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
53         rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
54
55 if UPDATE_GTK_ICON_CACHE
56 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
57
58 install-data-hook: rename-icons update-icon-cache
59 uninstall-hook: remove-icons update-icon-cache
60
61 update-icon-cache:
62         @-if test -z "$(DESTDIR)"; then                                 \
63                 echo "Updating Gtk icon cache.";                        \
64                 $(gtk_update_icon_cache);                               \
65         else                                                            \
66                 echo "*** Icon cache not updated. Remember to run:";    \
67                 echo "***";                                             \
68                 echo "***   $(gtk_update_icon_cache)";                  \
69                 echo "***";                                             \
70         fi
71 else
72
73 install-data-hook: rename-icons
74 uninstall-hook: remove-icons
75
76 endif
77
78 pkgconfigdir = $(libdir)/pkgconfig
79 pkgconfig_DATA = claws-mail.pc
80
81 clawsincludedir = $(pkgincludedir)
82 clawsinclude_HEADERS = \
83         claws-features.h
84
85 relnotesdir = $(docdir)
86 relnotes_DATA = RELEASE_NOTES
87
88 dist-local: ChangeLog
89
90 maintainer-clean-local:
91         @rm -f ChangeLog
92         @rm -f version
93
94 ChangeLog: version
95         @./tools/gitlog2changelog.py 3.9.0 > ChangeLog