Makefile.am 1.52 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
SUBDIRS = . tests

pkglibexecdir = $(libexecdir)/@PACKAGE@

pkglibexec_SCRIPTS = b10-ddns

b10_ddnsdir = $(pkgdatadir)
b10_ddns_DATA = ddns.spec

nodist_pylogmessage_PYTHON = $(PYTHON_LOGMSGPKG_DIR)/work/ddns_messages.py
pylogmessagedir = $(pyexecdir)/isc/log_messages/

13
CLEANFILES = b10-ddns ddns.pyc
14
15
16
CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/ddns_messages.py
CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/ddns_messages.pyc

17
EXTRA_DIST =  ddns_messages.mes ddns.spec
18

19
man_MANS = b10-ddns.8
20
MAINTAINERCLEANFILES = $(man_MANS)
21
EXTRA_DIST += $(man_MANS) b10-ddns.xml
22

23
if GENERATE_DOCS
24
25

b10-ddns.8: b10-ddns.xml
26
	@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-ddns.xml
27

28
29
30
else

$(man_MANS):
31
32
	@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 > $@
33

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
endif

# Define rule to build logging source files from message file
$(PYTHON_LOGMSGPKG_DIR)/work/ddns_messages.py : ddns_messages.mes
	$(top_builddir)/src/lib/log/compiler/message \
	-d $(PYTHON_LOGMSGPKG_DIR)/work -p $(srcdir)/ddns_messages.mes

# this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
b10-ddns: ddns.py $(PYTHON_LOGMSGPKG_DIR)/work/ddns_messages.py
	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
	       -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" ddns.py >$@
	chmod a+x $@

CLEANDIRS = __pycache__

clean-local:
	rm -rf $(CLEANDIRS)