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. pkgdata_DATA = kbdtab reprtab transtab
  45. EXTRA_DIST = MANUAL.he kbdtab reprtab transtab \
  46. geresh.1 pgeresh.1 \
  47. $(THEMES)
  48. man_MANS = geresh.1 pgeresh.1
  49. localedir = $(datadir)/locale
  50. INCLUDES = -DLOCALEDIR=\"$(localedir)\" -DPKGDATADIR=\"$(pkgdatadir)\"
  51. # Hmmm.... what's the correct way to create a directory
  52. # under pkgdatadir? How can I install the themes using only
  53. # pkgdata_DATA? Meanwhile, I'll use the following hack:
  54. install-data-local:
  55. $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(THEME_DIR)
  56. @list='$(THEMES)'; for p in $$list; do \
  57. if test -f $(srcdir)/$$p; then \
  58. echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p"; \
  59. $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p; \
  60. else if test -f $$p; then \
  61. echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p"; \
  62. $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p; \
  63. fi; fi; \
  64. done
  65. uninstall-local:
  66. list='$(THEMES)'; for p in $$list; do \
  67. rm -f $(DESTDIR)$(pkgdatadir)/$$p; \
  68. done