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

3
bin_SCRIPTS = bindctl
Jeremy C. Reed's avatar
Jeremy C. Reed committed
4
man_MANS = bindctl.1
5

6
EXTRA_DIST = $(man_MANS) bindctl.xml
7

8 9
noinst_SCRIPTS = run_bindctl.sh

10
python_PYTHON = __init__.py bindcmd.py cmdparse.py exception.py moduleinfo.py \
11
		mycollections.py command_sets.py
12 13
pythondir = $(pyexecdir)/bindctl

14
bindctldir = $(pkgdatadir)
15

16
CLEANFILES = bindctl bindctl_main.pyc
17
DISTCLEANFILES = $(man_MANS)
18

19
if GENERATE_DOCS
20

21
bindctl.1: bindctl.xml
22 23 24 25 26
	@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/bindctl.xml

else

$(man_MANS):
27 28
	@echo Man generation disabled.  Creating dummy $@.  Configure with --enable-generate-docs to enable it.
	@echo Man generation disabled.  Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
29

30 31
endif

32
bindctl: bindctl_main.py
33
	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
34
	       -e "s|@@SYSCONFDIR@@|@sysconfdir@|" \
35
	       -e "s|@@LIBEXECDIR@@|$(pkglibexecdir)|" bindctl_main.py >$@
36
	chmod a+x $@
37 38 39 40 41

CLEANDIRS = __pycache__

clean-local:
	rm -rf $(CLEANDIRS)