Makefile.am 1.79 KB
Newer Older
1
SUBDIRS = . tests
Jeremy C. Reed's avatar
Jeremy C. Reed committed
2

3
sbin_SCRIPTS = bind10
4 5 6
CLEANFILES = bind10 bind10_src.pyc
CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.py
CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.pyc
7

8
pkglibexecdir = $(libexecdir)/@PACKAGE@
9 10 11 12 13

nodist_pylogmessage_PYTHON = $(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.py
pylogmessagedir = $(pyexecdir)/isc/log_messages/

noinst_SCRIPTS = run_bind10.sh
14

15
bind10dir = $(pkgdatadir)
Jelte Jansen's avatar
Jelte Jansen committed
16
bind10_DATA = bob.spec
17 18
EXTRA_DIST = bob.spec

19
man_MANS = bind10.8
20
DISTCLEANFILES = $(man_MANS)
21
EXTRA_DIST += $(man_MANS) bind10.xml bind10_messages.mes
22

23
if GENERATE_DOCS
24

25
bind10.8: bind10.xml
Jeremy C. Reed's avatar
Jeremy C. Reed committed
26 27 28 29 30 31 32 33
	@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/bind10.xml 

#dist-local-check-mans-enabled:
#	@if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi

else

$(man_MANS):
34 35
	@echo Man generation disabled.  Creating dummy $@.  Configure with --enable-generate-docs to enable it.
	@echo Man generation disabled.  Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
Jeremy C. Reed's avatar
Jeremy C. Reed committed
36 37

#dist-local-check-mans-enabled:
38
#	@echo "*** --enable-generate-docs must be used in order to make dist"
Jeremy C. Reed's avatar
Jeremy C. Reed committed
39
#	@false
40

41 42
endif

43 44 45 46
$(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.py : bind10_messages.mes
	$(top_builddir)/src/lib/log/compiler/message \
	-d $(PYTHON_LOGMSGPKG_DIR)/work -p $(srcdir)/bind10_messages.mes

47
# this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
48
bind10: bind10_src.py $(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.py
49
	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
50
	       -e "s|@@LIBDIR@@|$(libdir)|" \
51
	       -e "s|@@LIBEXECDIR@@|$(pkglibexecdir)|" bind10_src.py >$@
52
	chmod a+x $@
53

Shane Kerr's avatar
Shane Kerr committed
54
pytest:
55
	$(SHELL) tests/bind10_test
56 57 58 59 60

CLEANDIRS = __pycache__

clean-local:
	rm -rf $(CLEANDIRS)