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/Log
37 modules += Git/SVN/Prompt
39 modules += Git/SVN/Utils
41 $(makfile): ../GIT-CFLAGS Makefile
42 echo all: private-Error.pm Git.pm Git/I18N.pm > $@
44 for i in $(modules); \
46 if test $$i = $${i%/*}; \
52 echo ' $(RM) blib/lib/'$$i'.pm' >> $@; \
53 echo ' mkdir -p blib/lib'$$subdir >> $@; \
54 echo ' cp '$$i'.pm blib/lib/'$$i'.pm' >> $@; \
56 echo ' $(RM) blib/lib/Error.pm' >> $@
57 '$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
58 echo ' cp private-Error.pm blib/lib/Error.pm' >> $@
61 for i in $(modules); \
63 if test $$i = $${i%/*}; \
69 echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
70 echo ' mkdir -p "$$(DESTDIR)$(instdir_SQ)'$$subdir'"' >> $@; \
71 echo ' cp '$$i'.pm "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
73 echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
74 '$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
75 echo ' cp private-Error.pm "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
76 echo instlibdir: >> $@
77 echo ' echo $(instdir_SQ)' >> $@
79 $(makfile): Makefile.PL ../GIT-CFLAGS
80 $(PERL_PATH) $< PREFIX='$(prefix_SQ)' INSTALL_BASE='' --localedir='$(localedir_SQ)'
83 # this is just added comfort for calling make directly in perl dir
84 # (even though GIT-CFLAGS aren't used yet. If ever)
86 $(MAKE) -C .. GIT-CFLAGS