2 # Makefile for perl support modules and routine
6 PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
7 prefix_SQ = $(subst ','\'',$(prefix))
13 all install instlibdir: $(makfile)
14 $(QUIET)$(MAKE) -f $(makfile) $@
17 $(QUIET)test -f $(makfile) && $(MAKE) -f $(makfile) $@ || exit 0
22 ifdef NO_PERL_MAKEMAKER
23 instdir_SQ = $(subst ','\'',$(prefix)/lib)
24 $(makfile): ../GIT-CFLAGS Makefile
28 echo ' mkdir -p $(instdir_SQ)' >> $@
29 echo ' $(RM) $(instdir_SQ)/Git.pm; cp Git.pm $(instdir_SQ)' >> $@
30 echo ' $(RM) $(instdir_SQ)/Error.pm; \
31 cp private-Error.pm $(instdir_SQ)/Error.pm' >> $@
32 echo instlibdir: >> $@
33 echo ' echo $(instdir_SQ)' >> $@
35 $(makfile): Makefile.PL ../GIT-CFLAGS
36 $(PERL_PATH) $< PREFIX='$(prefix_SQ)'
39 # this is just added comfort for calling make directly in perl dir
40 # (even though GIT-CFLAGS aren't used yet. If ever)
42 $(MAKE) -C .. GIT-CFLAGS