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