Makefile.am 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. SUBDIRS = . tests
  2. sbin_SCRIPTS = bind10
  3. CLEANFILES = bind10 bind10_src.pyc
  4. CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.py
  5. CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.pyc
  6. pkglibexecdir = $(libexecdir)/@PACKAGE@
  7. nodist_pylogmessage_PYTHON = $(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.py
  8. pylogmessagedir = $(pyexecdir)/isc/log_messages/
  9. noinst_SCRIPTS = run_bind10.sh
  10. bind10dir = $(pkgdatadir)
  11. bind10_DATA = bob.spec
  12. EXTRA_DIST = bob.spec
  13. man_MANS = bind10.8
  14. EXTRA_DIST += $(man_MANS) bind10.xml bind10_messages.mes
  15. if ENABLE_MAN
  16. bind10.8: bind10.xml
  17. xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/bind10.xml
  18. endif
  19. $(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.py : bind10_messages.mes
  20. $(top_builddir)/src/lib/log/compiler/message \
  21. -d $(PYTHON_LOGMSGPKG_DIR)/work -p $(srcdir)/bind10_messages.mes
  22. # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
  23. bind10: bind10_src.py $(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.py
  24. $(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
  25. -e "s|@@LIBEXECDIR@@|$(pkglibexecdir)|" bind10_src.py >$@
  26. chmod a+x $@
  27. pytest:
  28. $(SHELL) tests/bind10_test
  29. CLEANDIRS = __pycache__
  30. clean-local:
  31. rm -rf $(CLEANDIRS)