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)
32 modules += Git/IndexInfo
34 modules += Git/SVN/Memoize/YAML
35 modules += Git/SVN/Fetcher
36 modules += Git/SVN/Editor
37 modules += Git/SVN/GlobSpec
38 modules += Git/SVN/Log
39 modules += Git/SVN/Migration
40 modules += Git/SVN/Prompt
42 modules += Git/SVN/Utils
44 $(makfile): ../GIT-CFLAGS Makefile
45 echo all: private-Error.pm Git.pm Git/I18N.pm > $@
47 for i in $(modules); \
49 if test $$i = $${i%/*}; \
55 echo ' $(RM) blib/lib/'$$i'.pm' >> $@; \
56 echo ' mkdir -p blib/lib'$$subdir >> $@; \
57 echo ' cp '$$i'.pm blib/lib/'$$i'.pm' >> $@; \
59 echo ' $(RM) blib/lib/Error.pm' >> $@
60 '$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
61 echo ' cp private-Error.pm blib/lib/Error.pm' >> $@
64 for i in $(modules); \
66 if test $$i = $${i%/*}; \
72 echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
73 echo ' mkdir -p "$$(DESTDIR)$(instdir_SQ)'$$subdir'"' >> $@; \
74 echo ' cp '$$i'.pm "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
76 echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
77 '$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
78 echo ' cp private-Error.pm "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
79 echo instlibdir: >> $@
80 echo ' echo $(instdir_SQ)' >> $@
82 $(makfile): Makefile.PL ../GIT-CFLAGS
83 $(PERL_PATH) $< PREFIX='$(prefix_SQ)' INSTALL_BASE='' --localedir='$(localedir_SQ)'
86 # this is just added comfort for calling make directly in perl dir
87 # (even though GIT-CFLAGS aren't used yet. If ever)
89 $(MAKE) -C .. GIT-CFLAGS