Makefile.am 1.1 KB
Newer Older
1
SUBDIRS = . plugins local_plugins tests
Jelte Jansen's avatar
Jelte Jansen committed
2

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

Jelte Jansen's avatar
Jelte Jansen committed
5
pkglibexec_SCRIPTS = b10-cfgmgr
6

7
CLEANFILES = b10-cfgmgr b10-cfgmgr.pyc
8

9
b10_cfgmgrdir = @localstatedir@/@PACKAGE@
10
#B10_cfgmgr_DATA = 
11

12
man_MANS = b10-cfgmgr.8
13
DISTCLEANFILES = $(man_MANS)
14 15
EXTRA_DIST = $(man_MANS) b10-cfgmgr.xml

16
if GENERATE_DOCS
17

18
b10-cfgmgr.8: b10-cfgmgr.xml
19 20 21 22 23
	@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-cfgmgr.xml

else

$(man_MANS):
24 25
	@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 > $@
26

27 28
endif

29 30 31
# this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
b10-cfgmgr: b10-cfgmgr.py
	$(SED) "s|@@PYTHONPATH@@|@pyexecdir@|" b10-cfgmgr.py >$@
32
	chmod a+x $@
33 34 35 36

install-data-local:
	$(mkinstalldirs) $(DESTDIR)/@localstatedir@/@PACKAGE@

37 38
install-data-hook:
	-chmod 2770 $(DESTDIR)/@localstatedir@/@PACKAGE@
39 40 41 42 43

CLEANDIRS = __pycache__

clean-local:
	rm -rf $(CLEANDIRS)