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

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 = $(DESTDIR)$(pkgdatadir)
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
25
# TODO: does this need $$(DESTDIR) also?
# 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 >$@
26
	chmod a+x $@
27
28
29
30
31

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