revert pasting images as attachments 66fccde959a1b4addee971412b35d4b51d8272b1
[claws.git] / Makefile.am
blobcbbe2f2b4e42f96e48ea671f5474f285f73e59aa
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         version
31 # hicolor icon theme, base class of all icon themes
32 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
33 pixmap_DATA=claws-mail.png
35 pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
36 pixmap64_DATA=claws-mail-64x64.png
38 pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
39 pixmap128_DATA=claws-mail-128x128.png
41 # when changing the name or location of the .desktop file,
42 # also update src/common/Makefile.am
43 gnomapdir = $(datadir)/applications
44 gnomap_DATA=claws-mail.desktop
46 rename-icons:
47         @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
48             mv claws-mail-64x64.png claws-mail.png
49         @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
50             mv claws-mail-128x128.png claws-mail.png
52 remove-icons:
53         rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
54         rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
56 if UPDATE_GTK_ICON_CACHE
57 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
59 install-data-hook: rename-icons update-icon-cache
60 uninstall-hook: remove-icons update-icon-cache
62 update-icon-cache:
63         @-if test -z "$(DESTDIR)"; then                                 \
64                 echo "Updating Gtk icon cache.";                        \
65                 $(gtk_update_icon_cache);                               \
66         else                                                            \
67                 echo "*** Icon cache not updated. Remember to run:";    \
68                 echo "***";                                             \
69                 echo "***   $(gtk_update_icon_cache)";                  \
70                 echo "***";                                             \
71         fi
72 else
74 install-data-hook: rename-icons
75 uninstall-hook: remove-icons
77 endif
79 pkgconfigdir = $(libdir)/pkgconfig
80 pkgconfig_DATA = claws-mail.pc
82 clawsincludedir = $(pkgincludedir)
83 clawsinclude_HEADERS = \
84         claws-features.h
86 relnotesdir = $(docdir)
87 relnotes_DATA = RELEASE_NOTES
89 dist-local: ChangeLog
91 maintainer-clean-local:
92         @rm -f ChangeLog
93         @rm -f version
95 ChangeLog: version
96         @./tools/gitlog2changelog.py 3.9.0 > ChangeLog