Makefile.am 2.2 KB

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