Use gtk_combo_box_new_text only if supported
[claws.git] / Makefile.am
1 # Makefile.am for toplevel directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 ACLOCAL_AMFLAGS = -I m4
6 AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
7
8 SUBDIRS = m4 po src tools config doc manual
9
10 # when changing the name or location of the .desktop file,
11 # also update src/common/Makefile.am
12 desktop_in_files = claws-mail.desktop.in
13 desktopdir = $(datadir)/applications
14 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
15
16 @INTLTOOL_DESKTOP_RULE@
17
18 appdata_in_files = claws-mail.appdata.xml.in
19 appdatadir=$(datadir)/appdata
20 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
21
22 @INTLTOOL_XML_RULE@
23
24 EXTRA_DIST = \
25         ChangeLog \
26         ChangeLog.gtk1 \
27         ChangeLog.pre2.0.0 \
28         ChangeLog.2.0.0-3.0.0 \
29         ChangeLog.3.0.0-3.9.0 \
30         RELEASE_NOTES \
31         claws-mail-128x128.png \
32         claws-mail-64x64.png \
33         claws-mail.pc.in \
34         $(desktop_in_files) \
35         claws-mail.png \
36         $(appdata_DATA) \
37         $(appdata_in_files) \
38         autogen.sh \
39         claws-features.h.in \
40         version
41
42 # hicolor icon theme, base class of all icon themes
43 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
44 pixmap_DATA=claws-mail.png
45
46 pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
47 pixmap64_DATA=claws-mail-64x64.png
48
49 pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
50 pixmap128_DATA=claws-mail-128x128.png
51
52 rename-icons:
53         @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
54             mv claws-mail-64x64.png claws-mail.png
55         @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
56             mv claws-mail-128x128.png claws-mail.png
57
58 remove-icons:
59         rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
60         rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
61
62 if UPDATE_GTK_ICON_CACHE
63 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
64
65 install-data-hook: rename-icons update-icon-cache
66 uninstall-hook: remove-icons update-icon-cache
67
68 update-icon-cache:
69         @-if test -z "$(DESTDIR)"; then                                 \
70                 echo "Updating Gtk icon cache.";                        \
71                 $(gtk_update_icon_cache);                               \
72         else                                                            \
73                 echo "*** Icon cache not updated. Remember to run:";    \
74                 echo "***";                                             \
75                 echo "***   $(gtk_update_icon_cache)";                  \
76                 echo "***";                                             \
77         fi
78 else
79
80 install-data-hook: rename-icons
81 uninstall-hook: remove-icons
82
83 endif
84
85 pkgconfigdir = $(libdir)/pkgconfig
86 pkgconfig_DATA = claws-mail.pc
87
88 clawsincludedir = $(pkgincludedir)
89 clawsinclude_HEADERS = \
90         claws-features.h
91
92 relnotesdir = $(docdir)
93 relnotes_DATA = RELEASE_NOTES
94
95 dist-local: ChangeLog
96
97 maintainer-clean-local:
98         @rm -f ChangeLog
99         @rm -f version
100
101 ChangeLog: version
102         @./tools/gitlog2changelog.py 3.9.0 > ChangeLog