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

Last change on this file since 1090 was 1090, checked in by gah, 16 years ago

various fixes

File size: 1.1 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)
20envfile         = _perl.env
21
22build_dir       = build
23
24all: tmp $(envfile)
25        $(MAKE) -C $(build_dir)
26
27tmp:
28        $(RM) -r $(build_dir)
29        $(MKDIR_P) $(build_dir)
30        cp -p Makefile.PL $(build_dir)/Makefile.PL
31        tar -C $(srcdir) -clf - . | tar -C $(build_dir) -xpf -
32        (cd $(build_dir); $(PERL) Makefile.PL)
33
34$(envfile):
35        echo 'export PERL5LIB=$(perl5dir):$$PERL5LIB' > $(envfile)
36
37install:
38        $(MAKE) -C $(build_dir) install_perl
39        $(INSTALL) -m 555 $(envfile) $(bindir)
40
41clean:
42        $(MAKE) -C $(build_dir) clean
43        $(RM) -rf $(build_dir)
44        $(RM) $(envfile)
45
46distclean: clean
47
Note: See TracBrowser for help on using the repository browser.