Makefile.am 1.3 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
EXTRA_DIST += $(man_MANS) bind10.xml bind10_messages.mes
21

22
23
if ENABLE_MAN

24
25
26
bind10.8: bind10.xml
	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/bind10.xml 

27
28
endif

29
30
31
32
$(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

33
# this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
34
bind10: bind10_src.py $(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.py
35
	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
36
	       -e "s|@@LIBDIR@@|$(libdir)|" \
37
	       -e "s|@@LIBEXECDIR@@|$(pkglibexecdir)|" bind10_src.py >$@
38
	chmod a+x $@
39

Shane Kerr's avatar
Shane Kerr committed
40
pytest:
41
	$(SHELL) tests/bind10_test
42
43
44
45
46

CLEANDIRS = __pycache__

clean-local:
	rm -rf $(CLEANDIRS)