Makefile.am 740 Bytes
Newer Older
1
SUBDIRS = . tests
Jelte Jansen's avatar
Jelte Jansen committed
2

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

Jelte Jansen's avatar
Jelte Jansen committed
5
pkglibexec_SCRIPTS = b10-cfgmgr
6

7
CLEANFILES = b10-cfgmgr b10-cfgmgr.pyc
8

9
b10_cfgmgrdir = @localstatedir@/@PACKAGE@
10
#B10_cfgmgr_DATA = 
11

12
13
14
man_MANS = b10-cfgmgr.8
EXTRA_DIST = $(man_MANS) b10-cfgmgr.xml

15
16
if ENABLE_MAN

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

20
21
endif

22
23
24
# this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
b10-cfgmgr: b10-cfgmgr.py
	$(SED) "s|@@PYTHONPATH@@|@pyexecdir@|" b10-cfgmgr.py >$@
25
	chmod a+x $@
26
27
28
29
30

install-data-local:
	$(mkinstalldirs) $(DESTDIR)/@localstatedir@/@PACKAGE@
# TODO: permissions handled later