X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=Makefile.am;h=eb390ba217a87ce7e34a455fd80a57588a852af2;hp=c156cd8348afc1e27cbac7273f51854ba011e6ae;hb=11654e733ec943c61fcd0db0ebf4b684b1556a22;hpb=ee4ead6b50940eb47677e84e0f31f13e2265d686 diff --git a/Makefile.am b/Makefile.am index c156cd834..eb390ba21 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,35 +1,64 @@ -ACLOCAL_AMFLAGS = -I m4 -AUTOMAKE_OPTIONS = dist-bzip2 +# Makefile.am for toplevel directory +# This file is part of Claws Mail package. +# See COPYING file for license details. -if PLATFORM_WIN32 -tools = -else -tools = tools -endif +ACLOCAL_AMFLAGS = -I m4 +AUTOMAKE_OPTIONS = dist-bzip2 dist-xz -SUBDIRS = m4 po src $(tools) config doc manual +SUBDIRS = m4 po src tools config doc manual EXTRA_DIST = \ 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-mail.appdata.xml \ + autogen.sh \ + claws-features.h.in \ + version -if SYLPHEED_GNOME2 # 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 +appdatadir=$(datadir)/appdata +appdata_DATA = claws-mail.appdata.xml + +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: +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); \ @@ -39,24 +68,28 @@ install-data-hook: echo "*** $(gtk_update_icon_cache)"; \ echo "***"; \ fi - -else -if SYLPHEED_GNOME -pixmapdir=$(gnomedatadir)/pixmaps -pixmap_DATA=claws-mail.png -gnomapdir=$(gnomedatadir)/gnome/apps/Internet -gnomap_DATA=claws-mail.desktop else -pixmapdir= -pixmap_DATA= -gnomapdir= -gnomap_DATA= -endif + +install-data-hook: rename-icons +uninstall-hook: remove-icons + endif pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = claws-mail.pc -sylpheedincludedir = $(pkgincludedir) -sylpheedinclude_HEADERS = \ - config.h +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