Makefile.am 816 Bytes
Newer Older
Likun Zhang's avatar
Likun Zhang committed
1
2
3
4
5
6
7
pkglibexecdir = $(libexecdir)/@PACKAGE@

pkglibexec_SCRIPTS = b10-xfrin

b10_xfrindir = $(DESTDIR)$(pkgdatadir)
b10_xfrin_DATA = xfrin.spec

8
EXTRA_DIST = xfrin.pre.in
9

10
CLEANFILES = b10-xfrin xfrin.pre xfrin.spec
Likun Zhang's avatar
Likun Zhang committed
11

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

15
16
if ENABLE_MAN

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

20
21
endif

22
23
24
xfrin.spec: xfrin.pre
	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" xfrin.pre >$@

Likun Zhang's avatar
Likun Zhang committed
25
26
27
# TODO: does this need $$(DESTDIR) also?
# this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
b10-xfrin: xfrin.py
28
29
	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
	       -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" xfrin.py >$@
Likun Zhang's avatar
Likun Zhang committed
30
	chmod a+x $@