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 # We exploit that /bin/sh transforms the DOS-Stype path in TEMP into
24 # the MSYS style pseudo-mount form.
25 # This colon-free from is needed because our perl scripts look at
26 # $(instdir_SQ) and split it at colons.
27 instdir_SQ
= $(subst ','\'',$(shell cmd /x/d/c "set TEMP=$(prefix)/lib && sh -c 'echo \
$$TEMP'"))
28 $(makfile): ../GIT-CFLAGS Makefile
32 echo ' mkdir
-p
$(instdir_SQ
)' >> $@
33 echo ' $(RM
) $(instdir_SQ
)/Git.pm
; cp Git.pm
$(instdir_SQ
)' >> $@
34 echo ' $(RM
) $(instdir_SQ
)/Error.pm
; \
35 cp private-Error.pm
$(instdir_SQ
)/Error.pm
' >> $@
36 echo instlibdir: >> $@
37 echo ' echo
$(instdir_SQ
)' >> $@
39 $(makfile): Makefile.PL ../GIT-CFLAGS
40 $(PERL_PATH) $< PREFIX='$(prefix_SQ
)'
43 # this is just added comfort for calling make directly in perl dir
44 # (even though GIT-CFLAGS aren't used yet. If ever
)
46 $(MAKE
) -C .. GIT-CFLAGS