source: trunk/lang/perl/Makefile.in @ 1087

Last change on this file since 1087 was 1087, checked in by dkearney, 16 years ago

adjusted how we calculate the library path for perl and ruby bindings

File size: 1.0 KB
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11
12INSTALL         = @INSTALL@
13MKDIR_P         = @MKDIR_P@
14RM              = rm -f
15PERL            = @PERL@
16PERL_ARCHLIB    = @PERL_ARCHLIB@
17PERL_VERSION    = @PERL_VERSION@
18PERL_VERSION_RV = @PERL_VERSION_RV@
19perl5dir        = $$RAPPTURE_INSTALL_DIR/lib/perl/$(PERL_VERSION_RV)
20
21build_dir       = build
22
23all: tmp perl.env
24        $(MAKE) -C $(build_dir)
25
26tmp:
27        $(RM) -r $(build_dir)
28        $(MKDIR_P) $(build_dir)
29        cp -p Makefile.PL $(build_dir)/Makefile.PL
30        tar -C $(srcdir) -clf - . | tar -C $(build_dir) -xpf -
31        (cd $(build_dir); $(PERL) Makefile.PL)
32
33perl.env:
34        echo 'export PERL5LIB=$(perl5dir):$$PERL5LIB' > perl.env
35
36install:
37        $(MAKE) -C $(build_dir) install_perl
38        $(INSTALL) -m 555 perl.env $(bindir)
39
40clean:
41        $(MAKE) -C $(build_dir) clean
42        $(RM) -rf $(build_dir)
43        $(RM) perl.env
44
45distclean: clean
46
Note: See TracBrowser for help on using the repository browser.