Fix some translated strings
[claws.git] / Makefile.am
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.
5
6 ACLOCAL_AMFLAGS = -I m4
7 AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
8
9 SUBDIRS = m4 po src tools config doc manual
10
11 EXTRA_DIST = \
12         ChangeLog \
13         ChangeLog.gtk1 \
14         ChangeLog.pre2.0.0 \
15         ChangeLog.2.0.0-3.0.0 \
16         ChangeLog.3.0.0-3.9.0 \
17         RELEASE_NOTES \
18         claws-mail-128x128.png \
19         claws-mail-64x64.png \
20         claws-mail.pc.in \
21         claws-mail.desktop \
22         claws-mail.png \
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 rename-icons:
43         @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
44             mv claws-mail-64x64.png claws-mail.png
45         @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
46             mv claws-mail-128x128.png claws-mail.png
47
48 remove-icons:
49         rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
50         rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
51
52 if UPDATE_GTK_ICON_CACHE
53 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
54
55 install-data-hook: rename-icons update-icon-cache
56 uninstall-hook: remove-icons update-icon-cache
57
58 update-icon-cache:
59         @-if test -z "$(DESTDIR)"; then                                 \
60                 echo "Updating Gtk icon cache.";                        \
61                 $(gtk_update_icon_cache);                               \
62         else                                                            \
63                 echo "*** Icon cache not updated. Remember to run:";    \
64                 echo "***";                                             \
65                 echo "***   $(gtk_update_icon_cache)";                  \
66                 echo "***";                                             \
67         fi
68 else
69
70 install-data-hook: rename-icons
71 uninstall-hook: remove-icons
72
73 endif
74
75 pkgconfigdir = $(libdir)/pkgconfig
76 pkgconfig_DATA = claws-mail.pc
77
78 clawsincludedir = $(pkgincludedir)
79 clawsinclude_HEADERS = \
80         claws-features.h
81
82 relnotesdir = $(docdir)
83 relnotes_DATA = RELEASE_NOTES
84
85 dist-local: ChangeLog
86
87 maintainer-clean-local:
88         @rm -f ChangeLog
89         @rm -f version
90
91 ChangeLog: version
92         @./tools/gitlog2changelog.py 3.9.0 > ChangeLog