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

3
sbin_SCRIPTS = bind10
4
CLEANFILES = bind10 bind10.pyc
5

6
7
pkglibexecdir = $(libexecdir)/@PACKAGE@

8
bind10dir = $(pkgdatadir)
Jelte Jansen's avatar
Jelte Jansen committed
9
bind10_DATA = bob.spec
10
11
EXTRA_DIST = bob.spec

12
man_MANS = bind10.8
Jeremy C. Reed's avatar
Jeremy C. Reed committed
13
EXTRA_DIST += $(man_MANS) bind10.xml
14

15
16
if ENABLE_MAN

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

20
21
endif

22
23
# this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
bind10: bind10.py
24
25
	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
	       -e "s|@@LIBEXECDIR@@|$(pkglibexecdir)|" bind10.py >$@
26
	chmod a+x $@
27

Shane Kerr's avatar
Shane Kerr committed
28
pytest:
29
	$(SHELL) tests/bind10_test