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
25 echo all: private-Error.pm Git.pm > $@
26 echo ' mkdir
-p blib
/lib
' >> $@
27 echo ' $(RM
) blib
/lib
/Git.pm
; cp Git.pm blib
/lib
/' >> $@
28 echo ' $(RM
) blib
/lib
/Error.pm
' >> $@
29 '$(PERL_PATH_SQ
)' -MError -e 'exit
($$Error::VERSION
< 0.15009)' || \
30 echo ' cp private-Error.pm blib
/lib
/Error.pm
' >> $@
32 echo ' mkdir
-p
"$$(DESTDIR)$(instdir_SQ)"' >> $@
33 echo ' $(RM
) "$$(DESTDIR)$(instdir_SQ)/Git.pm"; cp Git.pm
"$$(DESTDIR)$(instdir_SQ)"' >> $@
34 echo ' $(RM
) "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
35 '$(PERL_PATH_SQ
)' -MError -e 'exit
($$Error::VERSION
< 0.15009)' || \
36 echo ' cp private-Error.pm
"$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
37 echo instlibdir: >> $@
38 echo ' echo
$(instdir_SQ
)' >> $@
40 $(makfile): Makefile.PL ../GIT-CFLAGS
41 $(PERL_PATH) $< PREFIX='$(prefix_SQ
)'
44 # this is just added comfort for calling make directly in perl dir
45 # (even though GIT-CFLAGS aren't used yet. If ever
)
47 $(MAKE
) -C .. GIT-CFLAGS