Makefile.am 1.03 KB
Newer Older
1
SUBDIRS = . 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
CLEANFILES += $(man_MANS)
14
15
EXTRA_DIST = $(man_MANS) b10-cfgmgr.xml

16
17
if ENABLE_MAN

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

else

$(man_MANS):
	@echo Man generation disabled.  Creating dummy $@.  Configure with --enable-man to enable it.
	@echo Man generation disabled.  Remove this file, configure with --enable-man, 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
37

install-data-local:
	$(mkinstalldirs) $(DESTDIR)/@localstatedir@/@PACKAGE@
# TODO: permissions handled later

38
39
40
41
42

CLEANDIRS = __pycache__

clean-local:
	rm -rf $(CLEANDIRS)