Makefile.am 678 Bytes
Newer Older
1
sbin_SCRIPTS = bind10
2
CLEANFILES = bind10
3

4
5
pkglibexecdir = $(libexecdir)/@PACKAGE@

Jelte Jansen's avatar
Jelte Jansen committed
6
7
bind10dir = $(DESTDIR)$(pkgdatadir)
bind10_DATA = bob.spec
8
9
EXTRA_DIST = bob.spec

10
11
12
13
14
15
man_MANS = bind10.8
EXTRA_DIST += $(man_MANS) bind10.xml

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

16
17
18
# TODO: does this need $$(DESTDIR) also?
# this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
bind10: bind10.py
19
20
	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
	       -e "s|@@LIBEXECDIR@@|$(pkglibexecdir)|" bind10.py >$@
21
	chmod a+x $@
22

Shane Kerr's avatar
Shane Kerr committed
23
pytest:
24
	$(SHELL) tests/bind10_test