Makefile.am 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. if BUILD_TESTS
  6. include $(top_srcdir)/tests.mk
  7. endif
  8. ACLOCAL_AMFLAGS = -I m4
  9. AUTOMAKE_OPTIONS = dist-bzip2 dist-xz
  10. SUBDIRS = m4 po src tools config doc manual
  11. EXTRA_DIST = \
  12. ChangeLog \
  13. ChangeLog.gtk1 \
  14. ChangeLog.pre2.0.0 \
  15. ChangeLog.2.0.0-3.0.0 \
  16. ChangeLog.3.0.0-3.9.0 \
  17. RELEASE_NOTES \
  18. claws-mail-128x128.png \
  19. claws-mail-64x64.png \
  20. claws-mail.pc.in \
  21. claws-mail.desktop \
  22. claws-mail.png \
  23. autogen.sh \
  24. claws-features.h.in \
  25. version
  26. # hicolor icon theme, base class of all icon themes
  27. pixmapdir=$(datadir)/icons/hicolor/48x48/apps
  28. pixmap_DATA=claws-mail.png
  29. pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
  30. pixmap64_DATA=claws-mail-64x64.png
  31. pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
  32. 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
  37. rename-icons:
  38. @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
  39. mv claws-mail-64x64.png claws-mail.png
  40. @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
  41. mv claws-mail-128x128.png claws-mail.png
  42. remove-icons:
  43. rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
  44. rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
  45. if UPDATE_GTK_ICON_CACHE
  46. gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
  47. install-data-hook: rename-icons update-icon-cache
  48. uninstall-hook: remove-icons update-icon-cache
  49. update-icon-cache:
  50. @-if test -z "$(DESTDIR)"; then \
  51. echo "Updating Gtk icon cache."; \
  52. $(gtk_update_icon_cache); \
  53. else \
  54. echo "*** Icon cache not updated. Remember to run:"; \
  55. echo "***"; \
  56. echo "*** $(gtk_update_icon_cache)"; \
  57. echo "***"; \
  58. fi
  59. else
  60. install-data-hook: rename-icons
  61. uninstall-hook: remove-icons
  62. endif
  63. pkgconfigdir = $(libdir)/pkgconfig
  64. pkgconfig_DATA = claws-mail.pc
  65. clawsincludedir = $(pkgincludedir)
  66. clawsinclude_HEADERS = \
  67. claws-features.h
  68. relnotesdir = $(docdir)
  69. relnotes_DATA = RELEASE_NOTES
  70. dist-local: ChangeLog
  71. maintainer-clean-local:
  72. @rm -f ChangeLog
  73. @rm -f version
  74. ChangeLog: version
  75. @./tools/gitlog2changelog.py 3.9.0 > ChangeLog