finally, use the proper name for the hooks
[claws.git] / Makefile.am
blobb9af385a3f828c7f0ee73c20dee8b8cf6d1aaf3b
1 # Copyright 1999-2014 the Claws Mail team.
2 # This file is part of Claws Mail package, and distributed under the
3 # terms of the General Public License version 3 (or later).
4 # See COPYING file for license details.
6 if BUILD_TESTS
7 include $(top_srcdir)/tests.mk
8 endif
10 ACLOCAL_AMFLAGS = -I m4
11 AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
13 SUBDIRS = po src tools config doc manual
15 EXTRA_DIST = \
16         ChangeLog \
17         ChangeLog.gtk1 \
18         ChangeLog.pre2.0.0 \
19         ChangeLog.2.0.0-3.0.0 \
20         ChangeLog.3.0.0-3.9.0 \
21         RELEASE_NOTES \
22         claws-mail-128x128.png \
23         claws-mail-64x64.png \
24         claws-mail.pc.in \
25         claws-mail.desktop \
26         claws-mail.png \
27         autogen.sh \
28         claws-features.h.in \
29         get-git-version \
30         m4 \
31         version
33 # hicolor icon theme, base class of all icon themes
34 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
35 pixmap_DATA=claws-mail.png
37 pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
38 pixmap64_DATA=claws-mail-64x64.png
40 pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
41 pixmap128_DATA=claws-mail-128x128.png
43 # when changing the name or location of the .desktop file,
44 # also update src/common/Makefile.am
45 gnomapdir = $(datadir)/applications
46 gnomap_DATA=claws-mail.desktop
48 rename-icons:
49         @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
50             mv claws-mail-64x64.png claws-mail.png
51         @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
52             mv claws-mail-128x128.png claws-mail.png
54 remove-icons:
55         rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
56         rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
58 if UPDATE_GTK_ICON_CACHE
59 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
61 install-data-hook: rename-icons update-icon-cache
62 uninstall-hook: remove-icons update-icon-cache
64 update-icon-cache:
65         @-if test -z "$(DESTDIR)"; then                                 \
66                 echo "Updating Gtk icon cache.";                        \
67                 $(gtk_update_icon_cache);                               \
68         else                                                            \
69                 echo "*** Icon cache not updated. Remember to run:";    \
70                 echo "***";                                             \
71                 echo "***   $(gtk_update_icon_cache)";                  \
72                 echo "***";                                             \
73         fi
74 else
76 install-data-hook: rename-icons
77 uninstall-hook: remove-icons
79 endif
81 pkgconfigdir = $(libdir)/pkgconfig
82 pkgconfig_DATA = claws-mail.pc
84 clawsincludedir = $(pkgincludedir)
85 clawsinclude_HEADERS = \
86         claws-features.h
88 relnotesdir = $(docdir)
89 relnotes_DATA = RELEASE_NOTES
91 dist-local: ChangeLog
93 maintainer-clean-local:
94         @rm -f ChangeLog
95         @rm -f version
97 ChangeLog: version
98         @./tools/gitlog2changelog.py 3.9.0 > ChangeLog