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
RevLine 
[1018]1
2bindir          = @bindir@
[1087]3datadir         = @datadir@
4datarootdir     = @datarootdir@
[1018]5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
[1087]10srcdir          = @srcdir@
[1018]11
[1087]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)
[1018]20
[1087]21build_dir       = build
[1018]22
[1082]23all: tmp perl.env
[1081]24        $(MAKE) -C $(build_dir)
[1018]25
[1081]26tmp:
27        $(RM) -r $(build_dir)
[1082]28        $(MKDIR_P) $(build_dir)
[1081]29        cp -p Makefile.PL $(build_dir)/Makefile.PL
[1087]30        tar -C $(srcdir) -clf - . | tar -C $(build_dir) -xpf -
[1081]31        (cd $(build_dir); $(PERL) Makefile.PL)
[1018]32
[1082]33perl.env:
34        echo 'export PERL5LIB=$(perl5dir):$$PERL5LIB' > perl.env
35
[1081]36install:
37        $(MAKE) -C $(build_dir) install_perl
[1082]38        $(INSTALL) -m 555 perl.env $(bindir)
[1018]39
[1081]40clean:
41        $(MAKE) -C $(build_dir) clean
42        $(RM) -rf $(build_dir)
[1082]43        $(RM) perl.env
[1018]44
45distclean: clean
46
Note: See TracBrowser for help on using the repository browser.