Makefile.am 1.37 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
24
CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/bind10_messages.pyc
EXTRA_DIST += $(PYTHON_LOGMSGPKG_SRCDIR)/bind10_messages.py

25
26
if ENABLE_MAN

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

30
31
endif

32
33
34
35
$(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

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

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

CLEANDIRS = __pycache__

clean-local:
	rm -rf $(CLEANDIRS)