Makefile.am 721 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
man_MANS = bind10.8
11
EXTRA_DIST += $(man_MANS) bind10.xml tests/bind10_test.py
12

13
14
if ENABLE_MAN

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

18
19
endif

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

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