Makefile.am 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. RELEASE_NOTES \
  10. claws-mail-128x128.png \
  11. claws-mail-64x64.png \
  12. claws-mail.pc.in \
  13. claws-mail.desktop \
  14. claws-mail.png \
  15. autogen.sh
  16. # hicolor icon theme, base class of all icon themes
  17. pixmapdir=$(datadir)/icons/hicolor/48x48/apps
  18. pixmap_DATA=claws-mail.png
  19. pixmap64dir=$(datadir)/icons/hicolor/64x64/apps
  20. pixmap64_DATA=claws-mail-64x64.png
  21. pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
  22. pixmap128_DATA=claws-mail-128x128.png
  23. # when changing the name or location of the .desktop file,
  24. # also update src/common/Makefile.am
  25. gnomapdir = $(datadir)/applications
  26. gnomap_DATA=claws-mail.desktop
  27. rename-icons:
  28. @cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
  29. mv claws-mail-64x64.png claws-mail.png
  30. @cd $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps && \
  31. mv claws-mail-128x128.png claws-mail.png
  32. remove-icons:
  33. rm -f $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps/claws-mail.png
  34. rm -f $(DESTDIR)$(datadir)/icons/hicolor/128x128/apps/claws-mail.png
  35. if CLAWS_GNOME2
  36. gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
  37. install-data-hook: rename-icons update-icon-cache
  38. uninstall-hook: remove-icons update-icon-cache
  39. update-icon-cache:
  40. @-if test -z "$(DESTDIR)"; then \
  41. echo "Updating Gtk icon cache."; \
  42. $(gtk_update_icon_cache); \
  43. else \
  44. echo "*** Icon cache not updated. Remember to run:"; \
  45. echo "***"; \
  46. echo "*** $(gtk_update_icon_cache)"; \
  47. echo "***"; \
  48. fi
  49. else
  50. install-data-hook: rename-icons
  51. uninstall-hook: remove-icons
  52. endif
  53. pkgconfigdir = $(libdir)/pkgconfig
  54. pkgconfig_DATA = claws-mail.pc
  55. clawsincludedir = $(pkgincludedir)
  56. clawsinclude_HEADERS = \
  57. config.h
  58. relnotesdir = $(docdir)
  59. relnotes_DATA = RELEASE_NOTES