2 # Makefile for perl support modules and routine
7 PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
8 prefix_SQ = $(subst ','\'',$(prefix))
9 localedir_SQ = $(subst ','\'',$(localedir))
15 all install instlibdir: $(makfile)
16 $(QUIET)$(MAKE) -f $(makfile) $@
19 $(QUIET)test -f $(makfile) && $(MAKE) -f $(makfile) $@ || exit 0
27 ifdef NO_PERL_MAKEMAKER
28 instdir_SQ = $(subst ','\'',$(prefix)/lib)
33 modules += Git/SVN/Memoize/YAML
34 modules += Git/SVN/Fetcher
35 modules += Git/SVN/Editor
36 modules += Git/SVN/Prompt
38 modules += Git/SVN/Utils
40 $(makfile): ../GIT-CFLAGS Makefile
41 echo all: private-Error.pm Git.pm Git/I18N.pm > $@
43 for i in $(modules); \
45 if test $$i = $${i%/*}; \
51 echo ' $(RM) blib/lib/'$$i'.pm' >> $@; \
52 echo ' mkdir -p blib/lib'$$subdir >> $@; \
53 echo ' cp '$$i'.pm blib/lib/'$$i'.pm' >> $@; \
55 echo ' $(RM) blib/lib/Error.pm' >> $@
56 '$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
57 echo ' cp private-Error.pm blib/lib/Error.pm' >> $@
60 for i in $(modules); \
62 if test $$i = $${i%/*}; \
68 echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
69 echo ' mkdir -p "$$(DESTDIR)$(instdir_SQ)'$$subdir'"' >> $@; \
70 echo ' cp '$$i'.pm "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
72 echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
73 '$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
74 echo ' cp private-Error.pm "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
75 echo instlibdir: >> $@
76 echo ' echo $(instdir_SQ)' >> $@
78 $(makfile): Makefile.PL ../GIT-CFLAGS
79 $(PERL_PATH) $< PREFIX='$(prefix_SQ)' INSTALL_BASE='' --localedir='$(localedir_SQ)'
82 # this is just added comfort for calling make directly in perl dir
83 # (even though GIT-CFLAGS aren't used yet. If ever)
85 $(MAKE) -C .. GIT-CFLAGS