X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=Makefile.am;h=043f6d5ab70ef4e41245f4d79de6fc520cc8730e;hp=381af96d8de1e4e05615fc2ff9137bdb8e7e783b;hb=8bde9802a292b258be1e5a8182e1dbe849ef38ac;hpb=027dce92c31fbe8051c7f86248ec91db8a380caa diff --git a/Makefile.am b/Makefile.am index 381af96d8..043f6d5ab 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,37 +1,75 @@ -SUBDIRS = ac po intl libkcc src manual tools +ACLOCAL_AMFLAGS = -I m4 +AUTOMAKE_OPTIONS = dist-bzip2 + +SUBDIRS = m4 po src tools config doc manual EXTRA_DIST = \ - ChangeLog.jp \ - INSTALL.jp \ - README.jp \ - README.claws \ - TODO.jp \ - sylpheed.desktop \ - sylpheed.spec \ - sylpheed.spec.in \ - autogen.sh \ - sylpheed.png \ - ChangeLog.claws - -if SYLPHEED_GNOME -pixmapdir=$(gnomedir)/share/pixmaps -pixmap_DATA=sylpheed.png -gnomapdir=$(gnomedir)/share/gnome/apps/Internet -gnomap_DATA=sylpheed.desktop + ChangeLog \ + ChangeLog.gtk1 \ + ChangeLog.pre2.0.0 \ + ChangeLog.2.0.0-3.0.0 \ + RELEASE_NOTES \ + claws-mail-128x128.png \ + claws-mail-64x64.png \ + claws-mail.pc.in \ + claws-mail.desktop \ + claws-mail.png \ + autogen.sh + +# 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 CLAWS_GNOME2 +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 -pixmapdir= -pixmap_DATA= -gnomapdir= -gnomap_DATA= + +install-data-hook: rename-icons +uninstall-hook: remove-icons + endif -BZIP2_ENV = +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = claws-mail.pc + +clawsincludedir = $(pkgincludedir) +clawsinclude_HEADERS = \ + config.h -release: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) - rm -f $(distdir)/sylpheed.spec - sed '/^Source:/s/\.tar\.gz$$/\.tar\.bz2/' sylpheed.spec \ - > $(distdir)/sylpheed.spec - BZIP2=$(BZIP2_ENV) $(TAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir) - -rm -rf $(distdir) +relnotesdir = $(docdir) +relnotes_DATA = RELEASE_NOTES