user-manual: more detailed merge discussion
[git/mingw/4msysgit/kblees.git] / perl / Makefile
blob099beda873e91ebacf1068531fe194fa041ed9d6
2 # Makefile for perl support modules and routine
4 makfile:=perl.mak
6 PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
7 prefix_SQ = $(subst ','\'',$(prefix))
9 all install instlibdir: $(makfile)
10 $(MAKE) -f $(makfile) $@
12 clean:
13 test -f $(makfile) && $(MAKE) -f $(makfile) $@ || exit 0
14 $(RM) ppport.h
15 $(RM) $(makfile)
16 $(RM) $(makfile).old
18 ifdef NO_PERL_MAKEMAKER
19 instdir_SQ = $(subst ','\'',$(prefix)/lib)
20 $(makfile): ../GIT-CFLAGS Makefile
21 echo all: > $@
22 echo ' :' >> $@
23 echo install: >> $@
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)' >> $@
30 else
31 $(makfile): Makefile.PL ../GIT-CFLAGS
32 '$(PERL_PATH_SQ)' $< PREFIX='$(prefix_SQ)'
33 endif
35 # this is just added comfort for calling make directly in perl dir
36 # (even though GIT-CFLAGS aren't used yet. If ever)
37 ../GIT-CFLAGS:
38 $(MAKE) -C .. GIT-CFLAGS