Makefile.am 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. SUBDIRS = tests
  2. pkglibexecdir = $(libexecdir)/@PACKAGE@
  3. pkglibexec_SCRIPTS = b10-stats b10-stats-httpd
  4. b10_statsdir = $(pkgdatadir)
  5. b10_stats_DATA = stats.spec stats-httpd.spec
  6. b10_stats_DATA += stats-httpd-xml.tpl stats-httpd-xsd.tpl stats-httpd-xsl.tpl
  7. nodist_pylogmessage_PYTHON = $(PYTHON_LOGMSGPKG_DIR)/work/stats_messages.py
  8. nodist_pylogmessage_PYTHON += $(PYTHON_LOGMSGPKG_DIR)/work/stats_httpd_messages.py
  9. pylogmessagedir = $(pyexecdir)/isc/log_messages/
  10. CLEANFILES = b10-stats stats.pyc
  11. CLEANFILES += b10-stats-httpd stats_httpd.pyc
  12. CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/stats_messages.py
  13. CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/stats_messages.pyc
  14. CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/stats_httpd_messages.py
  15. CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/stats_httpd_messages.pyc
  16. man_MANS = b10-stats.8 b10-stats-httpd.8
  17. DISTCLEANFILES = $(man_MANS)
  18. EXTRA_DIST = $(man_MANS) b10-stats.xml b10-stats-httpd.xml
  19. EXTRA_DIST += stats.spec stats-httpd.spec
  20. EXTRA_DIST += stats-httpd-xml.tpl stats-httpd-xsd.tpl stats-httpd-xsl.tpl
  21. EXTRA_DIST += stats_messages.mes stats_httpd_messages.mes
  22. if GENERATE_DOCS
  23. b10-stats.8: b10-stats.xml
  24. @XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-stats.xml
  25. b10-stats-httpd.8: b10-stats-httpd.xml
  26. @XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-stats-httpd.xml
  27. else
  28. $(man_MANS):
  29. @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
  30. @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
  31. endif
  32. $(PYTHON_LOGMSGPKG_DIR)/work/stats_messages.py : stats_messages.mes
  33. $(top_builddir)/src/lib/log/compiler/message \
  34. -d $(PYTHON_LOGMSGPKG_DIR)/work -p $(srcdir)/stats_messages.mes
  35. $(PYTHON_LOGMSGPKG_DIR)/work/stats_httpd_messages.py : stats_httpd_messages.mes
  36. $(top_builddir)/src/lib/log/compiler/message \
  37. -d $(PYTHON_LOGMSGPKG_DIR)/work -p $(srcdir)/stats_httpd_messages.mes
  38. # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
  39. b10-stats: stats.py $(PYTHON_LOGMSGPKG_DIR)/work/stats_messages.py
  40. $(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" stats.py >$@
  41. chmod a+x $@
  42. b10-stats-httpd: stats_httpd.py $(PYTHON_LOGMSGPKG_DIR)/work/stats_httpd_messages.py
  43. $(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" stats_httpd.py >$@
  44. chmod a+x $@
  45. CLEANDIRS = __pycache__
  46. clean-local:
  47. rm -rf $(CLEANDIRS)