test commit
[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 if BUILD_APPDATA
11 SUBDIRS += appdata
12 endif
13 DIST_SUBDIRS = appdata $(SUBDIRS)
14
15 # when changing the name or location of the .desktop file,
16 # also update src/common/Makefile.am
17 desktop_in_files = claws-mail.desktop.in
18 desktopdir = $(datadir)/applications
19 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
20
21 @INTLTOOL_DESKTOP_RULE@
22
23 EXTRA_DIST = \
24         ChangeLog \
25         ChangeLog.gtk1 \
26         ChangeLog.pre2.0.0 \
27         ChangeLog.2.0.0-3.0.0 \
28         ChangeLog.3.0.0-3.9.0 \
29         RELEASE_NOTES \
30         claws-mail-128x128.png \
31         claws-mail-64x64.png \
32         claws-mail.pc.in \
33         $(desktop_in_files) \
34         claws-mail.png \
35         autogen.sh \
36         claws-features.h.in \
37         version
38
39 # hicolor icon theme, base class of all icon themes
40 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
41 pixmap_DATA=claws-mail.png
42
43 pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
44 pixmap64_DATA=claws-mail-64x64.png
45
46 pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
47 pixmap128_DATA=claws-mail-128x128.png
48
49 rename-icons:
50         @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
51             mv claws-mail-64x64.png claws-mail.png
52         @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
53             mv claws-mail-128x128.png claws-mail.png
54
55 remove-icons:
56         rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
57         rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
58
59 if UPDATE_GTK_ICON_CACHE
60 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
61
62 install-data-hook: rename-icons update-icon-cache
63 uninstall-hook: remove-icons update-icon-cache
64
65 update-icon-cache:
66         @-if test -z "$(DESTDIR)"; then                                 \
67                 echo "Updating Gtk icon cache.";                        \
68                 $(gtk_update_icon_cache);                               \
69         else                                                            \
70                 echo "*** Icon cache not updated. Remember to run:";    \
71                 echo "***";                                             \
72                 echo "***   $(gtk_update_icon_cache)";                  \
73                 echo "***";                                             \
74         fi
75 else
76
77 install-data-hook: rename-icons
78 uninstall-hook: remove-icons
79
80 endif
81
82 pkgconfigdir = $(libdir)/pkgconfig
83 pkgconfig_DATA = claws-mail.pc
84
85 clawsincludedir = $(pkgincludedir)
86 clawsinclude_HEADERS = \
87         claws-features.h
88
89 relnotesdir = $(docdir)
90 relnotes_DATA = RELEASE_NOTES
91
92 dist-local: ChangeLog
93
94 maintainer-clean-local:
95         @rm -f ChangeLog
96         @rm -f version
97
98 ChangeLog: version
99         @./tools/gitlog2changelog.py 3.9.0 > ChangeLog