add shadow to rule list (like everywhere else)
[claws.git] / Makefile.am
index d4f1da6e652473836de34a1ce4692b2994fec688..3fdb4aabf4250332b5abc8c37029ad7a8e98517c 100644 (file)
@@ -1,72 +1,92 @@
-EXTRA_TOOLS = \
-       OOo2claws-mail.pl \
-       acroread2claws-mail.pl \
-       claws-mail-compose-insert-files.pl \
-       calypso_convert.pl \
-       convert_mbox.pl \
-       eud2gc.py \
-       filter_conv.pl \
-       filter_conv_new.pl \
-       fix_date.sh \
-       freshmeat_search.pl \
-       gif2xface.pl \
-       google_msgid.pl \
-       google_search.pl \
-       kmail2claws-mail.pl \
-       kmail2claws-mail_v2.pl \
-       kmail-mailbox2claws-mail.pl \
-       mairix.sh \
-       mew2claws-mail.pl \
-       multiwebsearch.pl \
-       nautilus2claws-mail.sh \
-       outlook2claws-mail.pl \
-       popfile-link.sh \
-       sylprint.pl \
-       sylprint.rc \
-       tb2claws-mail \
-       tbird2claws.py \
-       textviewer.pl \
-       textviewer.sh \
-       thunderbird-filters-convertor.pl \
-       update-po \
-       uudec \
-       uuooffice \
-       vcard2xml.py \
-       kdeservicemenu/install.sh \
-       kdeservicemenu/claws-mail-kdeservicemenu.pl
+# Copyright 1999-2014 the Claws Mail team.
+# This file is part of Claws Mail package, and distributed under the
+# terms of the General Public License version 3 (or later).
+# See COPYING file for license details.
+
+ACLOCAL_AMFLAGS = -I m4
+AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
+
+SUBDIRS = m4 po src tools config doc manual
 
 EXTRA_DIST = \
-       README \
-       README.sylprint \
-       multiwebsearch.conf \
-       kdeservicemenu/README \
-       kdeservicemenu/template_claws-mail-attach-files.desktop \
-       $(EXTRA_TOOLS)
-
-MAKE_EXE = chmod u+x $(EXTRA_TOOLS)
-
-all-local:
-       if [ ! -d kdeservicemenu -a ! -e kdeservicemenu ]; then \
-       mkdir kdeservicemenu; \
-       fi; \
-       for file in $(EXTRA_TOOLS); do \
-       if [ ! -e ${top_builddir}/tools/$$file ]; then \
-       todir=${top_builddir}/tools; \
-       dir=$$(dirname $$file); \
-       if [ ! $$dir = . ]; then \
-       todir=$$todir/$$dir; \
-       fi; \
-       cp ${top_srcdir}/tools/$$file $$todir; \
-       fi; \
-       done;
-       $(MAKE_EXE)
-
-distclean-local:
-       if [ ! ${top_builddir} = ${top_srcdir} ]; then \
-       for file in $(EXTRA_TOOLS); do \
-       rm -f $$file; \
-       done; \
-       if [ -d kdeservicemenu ]; then \
-       rmdir --ignore-fail-on-non-empty kdeservicemenu; \
-       fi; \
-       fi
+       ChangeLog \
+       ChangeLog.gtk1 \
+       ChangeLog.pre2.0.0 \
+       ChangeLog.2.0.0-3.0.0 \
+       ChangeLog.3.0.0-3.9.0 \
+       RELEASE_NOTES \
+       claws-mail-128x128.png \
+       claws-mail-64x64.png \
+       claws-mail.pc.in \
+       claws-mail.desktop \
+       claws-mail.png \
+       autogen.sh \
+       claws-features.h.in \
+       version
+
+# hicolor icon theme, base class of all icon themes
+pixmapdir=$(datadir)/icons/hicolor/48x48/apps
+pixmap_DATA=claws-mail.png
+
+pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
+pixmap64_DATA=claws-mail-64x64.png
+
+pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
+pixmap128_DATA=claws-mail-128x128.png
+
+# when changing the name or location of the .desktop file,
+# also update src/common/Makefile.am
+gnomapdir = $(datadir)/applications
+gnomap_DATA=claws-mail.desktop
+
+rename-icons:
+       @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
+            mv claws-mail-64x64.png claws-mail.png
+       @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
+            mv claws-mail-128x128.png claws-mail.png
+
+remove-icons:
+       rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
+       rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
+
+if UPDATE_GTK_ICON_CACHE
+gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
+
+install-data-hook: rename-icons update-icon-cache
+uninstall-hook: remove-icons update-icon-cache
+
+update-icon-cache:
+       @-if test -z "$(DESTDIR)"; then                                 \
+                echo "Updating Gtk icon cache.";                       \
+                $(gtk_update_icon_cache);                              \
+        else                                                           \
+                echo "*** Icon cache not updated. Remember to run:";   \
+               echo "***";                                             \
+                echo "***   $(gtk_update_icon_cache)";                 \
+               echo "***";                                             \
+        fi
+else
+
+install-data-hook: rename-icons
+uninstall-hook: remove-icons
+
+endif
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = claws-mail.pc
+
+clawsincludedir = $(pkgincludedir)
+clawsinclude_HEADERS = \
+       claws-features.h
+
+relnotesdir = $(docdir)
+relnotes_DATA = RELEASE_NOTES
+
+dist-local: ChangeLog
+
+maintainer-clean-local:
+       @rm -f ChangeLog
+       @rm -f version
+
+ChangeLog: version
+       @./tools/gitlog2changelog.py 3.9.0 > ChangeLog