update translations
[claws.git] / Makefile.am
blob96d57b16fb5aea6844d0fba6348ec5225772cee7
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 = m4 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         version
32 # hicolor icon theme, base class of all icon themes
33 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
34 pixmap_DATA=claws-mail.png
36 pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
37 pixmap64_DATA=claws-mail-64x64.png
39 pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
40 pixmap128_DATA=claws-mail-128x128.png
42 # when changing the name or location of the .desktop file,
43 # also update src/common/Makefile.am
44 gnomapdir = $(datadir)/applications
45 gnomap_DATA=claws-mail.desktop
47 rename-icons:
48         @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
49             mv claws-mail-64x64.png claws-mail.png
50         @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
51             mv claws-mail-128x128.png claws-mail.png
53 remove-icons:
54         rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
55         rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
57 if UPDATE_GTK_ICON_CACHE
58 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
60 install-data-hook: rename-icons update-icon-cache
61 uninstall-hook: remove-icons update-icon-cache
63 update-icon-cache:
64         @-if test -z "$(DESTDIR)"; then                                 \
65                 echo "Updating Gtk icon cache.";                        \
66                 $(gtk_update_icon_cache);                               \
67         else                                                            \
68                 echo "*** Icon cache not updated. Remember to run:";    \
69                 echo "***";                                             \
70                 echo "***   $(gtk_update_icon_cache)";                  \
71                 echo "***";                                             \
72         fi
73 else
75 install-data-hook: rename-icons
76 uninstall-hook: remove-icons
78 endif
80 pkgconfigdir = $(libdir)/pkgconfig
81 pkgconfig_DATA = claws-mail.pc
83 clawsincludedir = $(pkgincludedir)
84 clawsinclude_HEADERS = \
85         claws-features.h
87 relnotesdir = $(docdir)
88 relnotes_DATA = RELEASE_NOTES
90 dist-local: ChangeLog
92 maintainer-clean-local:
93         @rm -f ChangeLog
94         @rm -f version
96 ChangeLog: version
97         @./tools/gitlog2changelog.py 3.9.0 > ChangeLog