contrib/ciabot: Get ciabot configuration from git variables
[git/gitweb.git] / perl / Makefile
blobfe7a48646412b872d8db09bdef70de751399cad6
2 # Makefile for perl support modules and routine
4 makfile:=perl.mak
5 modules =
7 PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
8 prefix_SQ = $(subst ','\'',$(prefix))
9 localedir_SQ = $(subst ','\'',$(localedir))
11 ifndef V
12 QUIET = @
13 endif
15 all install instlibdir: $(makfile)
16 $(QUIET)$(MAKE) -f $(makfile) $@
18 clean:
19 $(QUIET)test -f $(makfile) && $(MAKE) -f $(makfile) $@ || exit 0
20 $(RM) ppport.h
21 $(RM) $(makfile)
22 $(RM) $(makfile).old
24 ifdef NO_PERL_MAKEMAKER
25 instdir_SQ = $(subst ','\'',$(prefix)/lib)
27 modules += Git
28 modules += Git/I18N
29 modules += Git/SVN/Memoize/YAML
30 modules += Git/SVN/Fetcher
31 modules += Git/SVN/Editor
32 modules += Git/SVN/Prompt
33 modules += Git/SVN/Ra
35 $(makfile): ../GIT-CFLAGS Makefile
36 echo all: private-Error.pm Git.pm Git/I18N.pm > $@
37 echo ' mkdir -p blib/lib/Git/SVN/Memoize' >> $@
38 set -e; \
39 for i in $(modules); \
40 do \
41 echo ' $(RM) blib/lib/'$$i'.pm' >> $@; \
42 echo ' cp '$$i'.pm blib/lib/'$$i'.pm' >> $@; \
43 done
44 echo ' $(RM) blib/lib/Error.pm' >> $@
45 '$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
46 echo ' cp private-Error.pm blib/lib/Error.pm' >> $@
47 echo install: >> $@
48 echo ' mkdir -p "$$(DESTDIR)$(instdir_SQ)/Git/SVN/Memoize"' >> $@
49 set -e; \
50 for i in $(modules); \
51 do \
52 echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
53 echo ' cp '$$i'.pm "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
54 done
55 echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
56 '$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
57 echo ' cp private-Error.pm "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
58 echo instlibdir: >> $@
59 echo ' echo $(instdir_SQ)' >> $@
60 else
61 $(makfile): Makefile.PL ../GIT-CFLAGS
62 $(PERL_PATH) $< PREFIX='$(prefix_SQ)' INSTALL_BASE='' --localedir='$(localedir_SQ)'
63 endif
65 # this is just added comfort for calling make directly in perl dir
66 # (even though GIT-CFLAGS aren't used yet. If ever)
67 ../GIT-CFLAGS:
68 $(MAKE) -C .. GIT-CFLAGS