Makefile.am 974 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
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 $@
Jeremy C. Reed's avatar
Jeremy C. Reed committed
27
28
29
30
31
32
33
34

# TODO: permissions handled later
install-data-local:
	$(mkinstalldirs) $(DESTDIR)/@sysconfdir@/@PACKAGE@   
	if test ! -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/bindctl.pem; then	\
	  $(INSTALL_DATA) $(srcdir)/bindctl.pem $(DESTDIR)$(sysconfdir)/@PACKAGE@/ ;	\
	fi