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

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

pkglibexec_SCRIPTS = b10-xfrout

7
b10_xfroutdir = $(pkgdatadir)
8
9
b10_xfrout_DATA = xfrout.spec

10
11
12
13
14
15
nodist_pylogmessage_PYTHON = $(PYTHON_LOGMSGPKG_DIR)/work/xfrout_messages.py
pylogmessagedir = $(pyexecdir)/isc/log_messages/

CLEANFILES = b10-xfrout xfrout.pyc xfrout.spec
CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/xfrout_messages.py
CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/xfrout_messages.pyc
16

Jeremy C. Reed's avatar
Jeremy C. Reed committed
17
man_MANS = b10-xfrout.8
18
CLEANFILES += $(man_MANS)
19
EXTRA_DIST = $(man_MANS) b10-xfrout.xml xfrout_messages.mes
Jeremy C. Reed's avatar
Jeremy C. Reed committed
20
21
22
23
24
25

if ENABLE_MAN

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

26
27
28
29
30
31
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 > $@

Jeremy C. Reed's avatar
Jeremy C. Reed committed
32
33
endif

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

39
40
xfrout.spec: xfrout.spec.pre
	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" xfrout.spec.pre >$@
41
42

# this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
43
b10-xfrout: xfrout.py $(PYTHON_LOGMSGPKG_DIR)/work/xfrout_messages.py
44
45
46
	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
	       -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" xfrout.py >$@
	chmod a+x $@
47
48
49
50
51

CLEANDIRS = __pycache__

clean-local:
	rm -rf $(CLEANDIRS)