Line | |
---|
1 | |
---|
2 | bindir = @bindir@ |
---|
3 | datadir = @datadir@ |
---|
4 | datarootdir = @datarootdir@ |
---|
5 | exec_prefix = @exec_prefix@ |
---|
6 | includedir = @includedir@ |
---|
7 | libdir = @libdir@ |
---|
8 | mandir = @mandir@ |
---|
9 | prefix = @prefix@ |
---|
10 | srcdir = @srcdir@ |
---|
11 | |
---|
12 | INSTALL = @INSTALL@ |
---|
13 | MKDIR_P = @MKDIR_P@ |
---|
14 | RM = rm -f |
---|
15 | PERL = @PERL@ |
---|
16 | PERL_ARCHLIB = @PERL_ARCHLIB@ |
---|
17 | PERL_VERSION = @PERL_VERSION@ |
---|
18 | PERL_VERSION_RV = @PERL_VERSION_RV@ |
---|
19 | perl5dir = $$RAPPTURE_INSTALL_DIR/lib/perl/$(PERL_VERSION_RV) |
---|
20 | envfile = _perl.env |
---|
21 | |
---|
22 | build_dir = build |
---|
23 | |
---|
24 | all: tmp $(envfile) |
---|
25 | $(MAKE) -C $(build_dir) |
---|
26 | |
---|
27 | tmp: |
---|
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 | |
---|
37 | install: |
---|
38 | $(MAKE) -C $(build_dir) install_perl |
---|
39 | $(INSTALL) -m 555 $(envfile) $(bindir) |
---|
40 | |
---|
41 | clean: |
---|
42 | $(MAKE) -C $(build_dir) clean |
---|
43 | $(RM) -rf $(build_dir) |
---|
44 | $(RM) $(envfile) |
---|
45 | |
---|
46 | distclean: clean |
---|
47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.