Makefile.am 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # Copyright 1999-2014 the Claws Mail team.
  2. # This file is part of Claws Mail package, and distributed under the
  3. # terms of the General Public License version 3 (or later).
  4. # See COPYING file for license details.
  5. ACLOCAL_AMFLAGS = -I m4
  6. AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
  7. SUBDIRS = m4 po src tools config doc manual
  8. EXTRA_DIST = \
  9. ChangeLog \
  10. ChangeLog.gtk1 \
  11. ChangeLog.pre2.0.0 \
  12. ChangeLog.2.0.0-3.0.0 \
  13. ChangeLog.3.0.0-3.9.0 \
  14. RELEASE_NOTES \
  15. claws-mail-128x128.png \
  16. claws-mail-64x64.png \
  17. claws-mail.pc.in \
  18. claws-mail.desktop \
  19. claws-mail.png \
  20. autogen.sh \
  21. claws-features.h.in \
  22. version
  23. # hicolor icon theme, base class of all icon themes
  24. pixmapdir=$(datadir)/icons/hicolor/48x48/apps
  25. pixmap_DATA=claws-mail.png
  26. pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
  27. pixmap64_DATA=claws-mail-64x64.png
  28. pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
  29. pixmap128_DATA=claws-mail-128x128.png
  30. # when changing the name or location of the .desktop file,
  31. # also update src/common/Makefile.am
  32. gnomapdir = $(datadir)/applications
  33. gnomap_DATA=claws-mail.desktop
  34. rename-icons:
  35. @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
  36. mv claws-mail-64x64.png claws-mail.png
  37. @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
  38. mv claws-mail-128x128.png claws-mail.png
  39. remove-icons:
  40. rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
  41. rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
  42. if UPDATE_GTK_ICON_CACHE
  43. gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
  44. install-data-hook: rename-icons update-icon-cache
  45. uninstall-hook: remove-icons update-icon-cache
  46. update-icon-cache:
  47. @-if test -z "$(DESTDIR)"; then \
  48. echo "Updating Gtk icon cache."; \
  49. $(gtk_update_icon_cache); \
  50. else \
  51. echo "*** Icon cache not updated. Remember to run:"; \
  52. echo "***"; \
  53. echo "*** $(gtk_update_icon_cache)"; \
  54. echo "***"; \
  55. fi
  56. else
  57. install-data-hook: rename-icons
  58. uninstall-hook: remove-icons
  59. endif
  60. pkgconfigdir = $(libdir)/pkgconfig
  61. pkgconfig_DATA = claws-mail.pc
  62. clawsincludedir = $(pkgincludedir)
  63. clawsinclude_HEADERS = \
  64. claws-features.h
  65. relnotesdir = $(docdir)
  66. relnotes_DATA = RELEASE_NOTES
  67. dist-local: ChangeLog
  68. maintainer-clean-local:
  69. @rm -f ChangeLog
  70. @rm -f version
  71. ChangeLog: version
  72. @./tools/gitlog2changelog.py 3.9.0 > ChangeLog