Fix bug 4628: typos in the README file, patch by Andreas Rönnquist.
[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 if BUILD_TESTS
7 include $(top_srcdir)/tests.mk
8 endif
9
10 ACLOCAL_AMFLAGS = -I m4
11 AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
12
13 SUBDIRS = m4 po src tools config doc manual
14
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
31
32 # hicolor icon theme, base class of all icon themes
33 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
34 pixmap_DATA=claws-mail.png
35
36 pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
37 pixmap64_DATA=claws-mail-64x64.png
38
39 pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
40 pixmap128_DATA=claws-mail-128x128.png
41
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
46
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
52
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
56
57 if UPDATE_GTK_ICON_CACHE
58 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
59
60 install-data-hook: rename-icons update-icon-cache
61 uninstall-hook: remove-icons update-icon-cache
62
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
74
75 install-data-hook: rename-icons
76 uninstall-hook: remove-icons
77
78 endif
79
80 pkgconfigdir = $(libdir)/pkgconfig
81 pkgconfig_DATA = claws-mail.pc
82
83 clawsincludedir = $(pkgincludedir)
84 clawsinclude_HEADERS = \
85         claws-features.h
86
87 relnotesdir = $(docdir)
88 relnotes_DATA = RELEASE_NOTES
89
90 dist-local: ChangeLog
91
92 maintainer-clean-local:
93         @rm -f ChangeLog
94         @rm -f version
95
96 ChangeLog: version
97         @./tools/gitlog2changelog.py 3.9.0 > ChangeLog