Tellico – collection manager for books, videos, music
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ####### tdevelop will overwrite this part!!! (begin)##########
  2. SUBDIRS = src po doc icons xslt
  3. ADMIN_DIST = \
  4. admin/acinclude.m4.in \
  5. admin/am_edit \
  6. admin/am_edit.py \
  7. admin/conf.change.pl \
  8. admin/config.pl \
  9. admin/libtool.m4.in \
  10. admin/Makefile.common
  11. EXTRA_DIST = \
  12. COPYING ChangeLog INSTALL README TODO \
  13. tellico.lsm tellico.dtd x-tellico.desktop \
  14. configure.in.in AUTHORS NEWS tellico.tips \
  15. tellico.desktop tellico.xml $(ADMIN_DIST)
  16. ####### tdevelop will overwrite this part!!! (end)############
  17. # not a GNU package. You can remove this line, if
  18. # have all needed files, that a GNU package needs
  19. AUTOMAKE_OPTIONS = foreign
  20. KDE_OPTIONS = noautodist
  21. #$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
  22. $(top_srcdir)/configure.in: configure.in.in
  23. cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
  24. cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in
  25. $(top_srcdir)/subdirs:
  26. cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
  27. $(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
  28. @cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
  29. xdg_apps_DATA = tellico.desktop
  30. xdg_mimedir = $(kde_datadir)/mime/packages
  31. xdg_mime_DATA = tellico.xml
  32. mimedir = $(kde_mimedir)/application
  33. mime_DATA = x-tellico.desktop
  34. localdir = $(kde_datadir)/tellico
  35. local_DATA = tellico.dtd tellico.tips
  36. CLEANFILES = *~ *.loT
  37. DISTCLEANFILES = stamp-h1 stamp-h.in stamp-h2 $(distdir).tar.gz $(CLEANFILES)
  38. MAINTAINERCLEANFILES = \
  39. subdirs configure configure.in \
  40. aclocal.m4 acinclude.m4 configure.files \
  41. Makefile.in $(DISTCLEANFILES)
  42. package-messages:
  43. $(MAKE) -f admin/Makefile.common package-messages
  44. $(MAKE) -C po merge
  45. messages:
  46. @ rm -f tips.cpp xslt.cpp z3950.cpp scripts.cpp
  47. @ touch $(podir)/tellico.pot;
  48. ./preparetips tellico.tips > tips.cpp; \
  49. $(XGETTEXT) --join-existing tips.cpp -o $(podir)/tellico.pot; \
  50. ./prepare_i18n_xslt > xslt.cpp; \
  51. $(XGETTEXT) --join-existing xslt.cpp -o $(podir)/tellico.pot; \
  52. ./prepare_desktop src/fetch/z3950-servers.cfg > z3950.cpp; \
  53. $(XGETTEXT) --join-existing z3950.cpp -o $(podir)/tellico.pot; \
  54. ./prepare_desktop src/fetch/scripts/*.spec > scripts.cpp; \
  55. $(XGETTEXT) --join-existing scripts.cpp -o $(podir)/tellico.pot;
  56. @ rm -f tips.cpp xslt.cpp z3950.cpp scripts.cpp
  57. dist-hook:
  58. # am_edit needs to modify the Makefile.in files, so they must be writeable
  59. -find $(distdir) -exec chmod a+w {} \;
  60. cd $(distdir) && perl admin/am_edit -padmin
  61. cd $(distdir) && $(MAKE) -f admin/Makefile.common subdirs
  62. # don't include dist file inside the dist file
  63. # cd $(srcdir) && rm -f $(distdir).tar.gz
  64. # remove any executable
  65. rm -rf $(distdir)/src/tellico
  66. PUBLIC_ID=-//Robby Stephenson/DTD Tellico V9.0//EN
  67. SYSTEM_ID=http://www.periapsis.org/tellico/dtd/v9/tellico.dtd
  68. install-data-local:
  69. @if test x"@XML_CATALOG_FILE@" != x; then \
  70. echo @XMLCATALOG@ --noout --add "delegatePublic" \
  71. "$(PUBLIC_ID)" \
  72. "file://$(localdir)/tellico.dtd" "@XML_CATALOG_FILE@" ; \
  73. @XMLCATALOG@ --noout --add "delegatePublic" \
  74. "$(PUBLIC_ID)" \
  75. "file://$(localdir)/tellico.dtd" "@XML_CATALOG_FILE@" ; \
  76. echo @XMLCATALOG@ --noout --add "delegateSystem" \
  77. "$(SYSTEM_ID)" \
  78. "file://$(localdir)/tellico.dtd" "@XML_CATALOG_FILE@" ; \
  79. @XMLCATALOG@ --noout --add "delegateSystem" \
  80. "$(SYSTEM_ID)" \
  81. "file://$(localdir)/tellico.dtd" "@XML_CATALOG_FILE@" ; \
  82. echo @XMLCATALOG@ --noout --add "delegateURI" \
  83. "$(SYSTEM_ID)" \
  84. "file://$(localdir)/tellico.dtd" "@XML_CATALOG_FILE@" ; \
  85. @XMLCATALOG@ --noout --add "delegateURI" \
  86. "$(SYSTEM_ID)" \
  87. "file://$(localdir)/tellico.dtd" "@XML_CATALOG_FILE@" ; \
  88. fi
  89. uninstall-local:
  90. @if test x"@XML_CATALOG_FILE@" != x; then \
  91. echo @XMLCATALOG@ --noout --del \
  92. "$(PUBLIC_ID)" "@XML_CATALOG_FILE@" ; \
  93. @XMLCATALOG@ --noout --del \
  94. "$(PUBLIC_ID)" "@XML_CATALOG_FILE@" ; \
  95. echo @XMLCATALOG@ --noout --del \
  96. "$(SYSTEM_ID)" "@XML_CATALOG_FILE@" ; \
  97. @XMLCATALOG@ --noout --del \
  98. "$(SYSTEM_ID)" "@XML_CATALOG_FILE@" ; \
  99. echo @XMLCATALOG@ --noout --del \
  100. "$(SYSTEM_ID)" "@XML_CATALOG_FILE@" ; \
  101. @XMLCATALOG@ --noout --del \
  102. "$(SYSTEM_ID)" "@XML_CATALOG_FILE@" ; \
  103. fi
  104. # probably a better way to do this
  105. uninstall-hook:
  106. -if [ -d $(localdir) ]; then rmdir $(localdir); fi