Makefile.am 1.06 KB
Newer Older
1
SUBDIRS = . tests
2
3
4
5
6

pkglibexecdir = $(libexecdir)/@PACKAGE@

pkglibexec_SCRIPTS = b10-zonemgr

7
b10_zonemgrdir = $(pkgdatadir)
8
b10_zonemgr_DATA = zonemgr.spec
9
pyexec_DATA = zonemgr_messages.py
10

11
12
CLEANFILES  = b10-zonemgr zonemgr.pyc zonemgr.spec
CLEANFILES += zonemgr_messages.py zonemgr_messages.pyc
13

14
man_MANS = b10-zonemgr.8
15
EXTRA_DIST = $(man_MANS) b10-zonemgr.xml zonemgr_messages.mes
16
17
18
19
20
21
22
23

if ENABLE_MAN

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

endif

24
25
26
27
# Build logging source file from message files
zonemgr_messages.py: zonemgr_messages.mes
	$(top_builddir)/src/lib/log/compiler/message -p $(top_srcdir)/src/bin/zonemgr/zonemgr_messages.mes

28
29
30
31
32
33
34
zonemgr.spec: zonemgr.spec.pre
	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" zonemgr.spec.pre >$@

b10-zonemgr: zonemgr.py
	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
	       -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" zonemgr.py >$@
	chmod a+x $@
35
36
37
38
39

CLEANDIRS = __pycache__

clean-local:
	rm -rf $(CLEANDIRS)