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

3
bin_SCRIPTS = bindctl
Jeremy C. Reed's avatar
Jeremy C. Reed committed
4
man_MANS = bindctl.1
5

6
EXTRA_DIST = $(man_MANS) bindctl.xml
7

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

11
12
bindctldir = $(DESTDIR)$(pkgdatadir)

13
14
CLEANFILES = bindctl

15
16
if ENABLE_MAN

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

20
21
endif

22
bindctl: bindctl-source.py
23
	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
24
	       -e "s|@@SYSCONFDIR@@|@sysconfdir@|" \
25
	       -e "s|@@LIBEXECDIR@@|$(pkglibexecdir)|" bindctl-source.py >$@
26
	chmod a+x $@