Makefile.am 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. AUTOMAKE_OPTIONS = foreign
  2. bin_PROGRAMS = geresh
  3. geresh_SOURCES = \
  4. bidi.cc bidi.h \
  5. basemenu.cc basemenu.h \
  6. converters.cc converters.h \
  7. dbg.cc dbg.h \
  8. dialogline.cc dialogline.h \
  9. editbox.cc editbox2.cc editbox.h \
  10. editor.cc editor.h \
  11. event.cc event.h \
  12. helpbox.cc helpbox.h \
  13. inputline.cc inputline.h \
  14. io.cc io.h \
  15. iso88598.cc iso88598.h \
  16. label.cc label.h \
  17. main.cc bindings.cc \
  18. menus.cc menus.h \
  19. mk_wcwidth.cc mk_wcwidth.h \
  20. question.cc question.h \
  21. scrollbar.cc scrollbar.h \
  22. speller.cc speller.h \
  23. shaping.cc shaping.h \
  24. statusline.cc statusline.h \
  25. terminal.cc terminal.h \
  26. themes.cc themes.h \
  27. transtbl.cc transtbl.h \
  28. types.cc types.h \
  29. undo.cc undo.h \
  30. utf8.cc utf8.h \
  31. widget.cc widget.h \
  32. directvect.h dispatcher.h my_wctob.h \
  33. pathnames.h point.h univalues.h
  34. bin_SCRIPTS = pgeresh
  35. THEME_DIR = themes
  36. THEMES = \
  37. $(THEME_DIR)/default.thm \
  38. $(THEME_DIR)/default_bw.thm \
  39. $(THEME_DIR)/mc.thm \
  40. $(THEME_DIR)/green.thm \
  41. $(THEME_DIR)/borland.thm \
  42. $(THEME_DIR)/occult.thm \
  43. $(THEME_DIR)/arnold.thm \
  44. $(THEME_DIR)/README.themes
  45. pkgdata_DATA = \
  46. MANUAL.he kbdtab reprtab transtab
  47. EXTRA_DIST = \
  48. MANUAL.he kbdtab reprtab transtab \
  49. $(THEMES)
  50. localedir = $(datadir)/locale
  51. INCLUDES = -DLOCALEDIR=\"$(localedir)\" -DPKGDATADIR=\"$(pkgdatadir)\"
  52. # Hmmm.... what's the correct way to create a directory
  53. # under pkgdatadir? How can I install the themes using only
  54. # pkgdata_DATA? Meanwhile, I'll use the following hack:
  55. install-data-local:
  56. $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(THEME_DIR)
  57. @list='$(THEMES)'; for p in $$list; do \
  58. if test -f $(srcdir)/$$p; then \
  59. echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p"; \
  60. $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p; \
  61. else if test -f $$p; then \
  62. echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p"; \
  63. $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p; \
  64. fi; fi; \
  65. done
  66. uninstall-local:
  67. list='$(THEMES)'; for p in $$list; do \
  68. rm -f $(DESTDIR)$(pkgdatadir)/$$p; \
  69. done