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
24 ifdef NO_PERL_MAKEMAKER
25 instdir_SQ = $(subst ','\'',$(prefix)/lib)
29 modules += Git/SVN/Memoize/YAML
30 modules += Git/SVN/Fetcher
31 modules += Git/SVN/Editor
32 modules += Git/SVN/Prompt
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' >> $@
39 for i in $(modules); \
41 echo ' $(RM) blib/lib/'$$i'.pm' >> $@; \
42 echo ' cp '$$i'.pm blib/lib/'$$i'.pm' >> $@; \
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' >> $@
48 echo ' mkdir -p "$$(DESTDIR)$(instdir_SQ)/Git/SVN/Memoize"' >> $@
50 for i in $(modules); \
52 echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
53 echo ' cp '$$i'.pm "$$(DESTDIR)$(instdir_SQ)/'$$i'.pm"' >> $@; \
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)' >> $@
61 $(makfile): Makefile.PL ../GIT-CFLAGS
62 $(PERL_PATH) $< PREFIX='$(prefix_SQ)' INSTALL_BASE='' --localedir='$(localedir_SQ)'
65 # this is just added comfort for calling make directly in perl dir
66 # (even though GIT-CFLAGS aren't used yet. If ever)
68 $(MAKE) -C .. GIT-CFLAGS