Makefile.am 689 Bytes
Newer Older
1
bin_SCRIPTS = bindctl
Jeremy C. Reed's avatar
Jeremy C. Reed committed
2
man_MANS = bindctl.1
3

4
EXTRA_DIST = $(man_MANS) bindctl.xml
5

6
7
8
python_PYTHON = __init__.py bindcmd.py cmdparse.py exception.py moduleinfo.py mycollections.py
pythondir = $(pyexecdir)/bindctl

9
10
11
12
bindctldir = $(DESTDIR)$(pkgdatadir)
bindctl_DATA = bindctl.pem
EXTRA_DIST += bindctl.pem

13
14
CLEANFILES = bindctl

15
16
17
bindctl.1: bindctl.xml
	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/bindctl.xml

18
bindctl: bindctl-source.py
19
	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
20
	       -e "s|@@SYSCONFDIR@@|@sysconfdir@|" \
21
	       -e "s|@@LIBEXECDIR@@|$(pkglibexecdir)|" bindctl-source.py >$@
22
	chmod a+x $@