Makefile.am 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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 = 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. get-git-version \
  26. m4 \
  27. version
  28. # hicolor icon theme, base class of all icon themes
  29. pixmapdir=$(datadir)/icons/hicolor/48x48/apps
  30. pixmap_DATA=claws-mail.png
  31. pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
  32. pixmap64_DATA=claws-mail-64x64.png
  33. pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
  34. pixmap128_DATA=claws-mail-128x128.png
  35. # when changing the name or location of the .desktop file,
  36. # also update src/common/Makefile.am
  37. gnomapdir = $(datadir)/applications
  38. gnomap_DATA=claws-mail.desktop
  39. rename-icons:
  40. @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
  41. mv claws-mail-64x64.png claws-mail.png
  42. @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
  43. mv claws-mail-128x128.png claws-mail.png
  44. remove-icons:
  45. rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
  46. rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
  47. if UPDATE_GTK_ICON_CACHE
  48. gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
  49. install-data-hook: rename-icons update-icon-cache
  50. uninstall-hook: remove-icons update-icon-cache
  51. update-icon-cache:
  52. @-if test -z "$(DESTDIR)"; then \
  53. echo "Updating Gtk icon cache."; \
  54. $(gtk_update_icon_cache); \
  55. else \
  56. echo "*** Icon cache not updated. Remember to run:"; \
  57. echo "***"; \
  58. echo "*** $(gtk_update_icon_cache)"; \
  59. echo "***"; \
  60. fi
  61. else
  62. install-data-hook: rename-icons
  63. uninstall-hook: remove-icons
  64. endif
  65. pkgconfigdir = $(libdir)/pkgconfig
  66. pkgconfig_DATA = claws-mail.pc
  67. clawsincludedir = $(pkgincludedir)
  68. clawsinclude_HEADERS = \
  69. claws-features.h
  70. relnotesdir = $(docdir)
  71. relnotes_DATA = RELEASE_NOTES
  72. dist-local: ChangeLog
  73. maintainer-clean-local:
  74. @rm -f ChangeLog
  75. @rm -f version
  76. ChangeLog: version
  77. @./tools/gitlog2changelog.py 3.9.0 > ChangeLog