summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: f578bc09a979e2c3b0148ed05a18cfcc7747b245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
## don't bother compiling the breakpoint library unless it is needed
if WITH_DEBUGGER
SUBDIRS = \
  	libxslt \
	breakpoint \
  	libexslt \
  	xsltproc \
  	doc \
	python \
  	tests
else
SUBDIRS = \
	libxslt \
	libexslt \
	xsltproc \
	doc \
	python \
	tests
endif

confexecdir=$(libdir)
confexec_DATA = xsltConf.sh

bin_SCRIPTS = xslt-config

dist-hook: libxslt.spec
	(cd $(srcdir) ; tar -cf - --exclude CVS win32 vms) | (cd $(distdir); tar xf -)

EXTRA_DIST = xsltConf.sh.in xslt-config.in libxslt.spec libxslt.spec.in \
             FEATURES TODO COPYING.LIB Copyright IPR \
	     win32/libxslt/libxslt.def win32/libxslt/libxslt.dsw \
	     win32/libxslt/libxslt_so.dsp win32/libxslt/xsltproc.dsp

## We create xsltConf.sh here and not from configure because we want
## to get the paths expanded correctly.  Macros like srcdir are given
## the value NONE in configure if the user doesn't specify them (this
## is an autoconf feature, not a bug).

xsltConf.sh: xsltConf.sh.in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
	sed -e 's?\@XSLT_LIBDIR\@?$(XSLT_LIBDIR)?g' \
	    -e 's?\@XSLT_INCLUDEDIR\@?$(XSLT_INCLUDEDIR)?g' \
	    -e 's?\@VERSION\@?$(VERSION)?g' \
	    -e 's?\@XSLT_LIBS\@?$(XSLT_LIBS)?g' \
	       < $(srcdir)/xsltConf.sh.in > xsltConf.tmp \
	&& mv xsltConf.tmp xsltConf.sh

check-local: tests

dummy:

tests: dummy
	@(cd tests ; $(MAKE) tests)
	@(cd python ; $(MAKE) tests)

cleantar:
	@(rm -f libxslt*.tar.gz)

rpm: cleantar dist
	rpm -ta libxslt*.tar.gz

pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA = libxslt.pc