Reorder send_message's port selection logic, paving the
[claws.git] / Makefile.am
blob10bc3ffb2159b780ce319d1afba58be6791aa432
1 ACLOCAL_AMFLAGS = -I m4
2 AUTOMAKE_OPTIONS = dist-bzip2
4 SUBDIRS = m4 po src tools config doc manual
6 EXTRA_DIST = \
7         ChangeLog \
8         ChangeLog.gtk1 \
9         ChangeLog.pre2.0.0 \
10         ChangeLog.2.0.0-3.0.0 \
11         ChangeLog.3.0.0-3.9.0 \
12         RELEASE_NOTES \
13         claws-mail-128x128.png \
14         claws-mail-64x64.png \
15         claws-mail.pc.in \
16         claws-mail.desktop \
17         claws-mail.png \
18         autogen.sh \
19         claws-features.h.in \
20         version.in \
21         version
23 # hicolor icon theme, base class of all icon themes
24 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
25 pixmap_DATA=claws-mail.png
27 pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
28 pixmap64_DATA=claws-mail-64x64.png
30 pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
31 pixmap128_DATA=claws-mail-128x128.png
33 # when changing the name or location of the .desktop file,
34 # also update src/common/Makefile.am
35 gnomapdir = $(datadir)/applications
36 gnomap_DATA=claws-mail.desktop
38 rename-icons:
39         @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
40             mv claws-mail-64x64.png claws-mail.png
41         @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
42             mv claws-mail-128x128.png claws-mail.png
44 remove-icons:
45         rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
46         rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
48 if UPDATE_GTK_ICON_CACHE
49 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
51 install-data-hook: rename-icons update-icon-cache
52 uninstall-hook: remove-icons update-icon-cache
54 update-icon-cache:
55         @-if test -z "$(DESTDIR)"; then                                 \
56                 echo "Updating Gtk icon cache.";                        \
57                 $(gtk_update_icon_cache);                               \
58         else                                                            \
59                 echo "*** Icon cache not updated. Remember to run:";    \
60                 echo "***";                                             \
61                 echo "***   $(gtk_update_icon_cache)";                  \
62                 echo "***";                                             \
63         fi
64 else
66 install-data-hook: rename-icons
67 uninstall-hook: remove-icons
69 endif
71 pkgconfigdir = $(libdir)/pkgconfig
72 pkgconfig_DATA = claws-mail.pc
74 clawsincludedir = $(pkgincludedir)
75 clawsinclude_HEADERS = \
76         claws-features.h
78 relnotesdir = $(docdir)
79 relnotes_DATA = RELEASE_NOTES
81 dist-hook: ChangeLog
83 clean-local:
84         @rm -f ChangeLog
86 ChangeLog: version
87         @./tools/gitlog2changelog.py 3.9.0 > ChangeLog