2006-12-04 10:50:04 +01:00
|
|
|
#
|
|
|
|
# Makefile for perl support modules and routine
|
|
|
|
#
|
|
|
|
makfile:=perl.mak
|
|
|
|
|
|
|
|
PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
|
|
|
|
prefix_SQ = $(subst ','\'',$(prefix))
|
|
|
|
|
2007-03-06 08:09:14 +01:00
|
|
|
ifndef V
|
2007-03-06 07:35:01 +01:00
|
|
|
QUIET = @
|
|
|
|
endif
|
|
|
|
|
2006-12-04 10:50:04 +01:00
|
|
|
all install instlibdir: $(makfile)
|
2007-03-06 07:35:01 +01:00
|
|
|
$(QUIET)$(MAKE) -f $(makfile) $@
|
2006-12-04 10:50:04 +01:00
|
|
|
|
|
|
|
clean:
|
2007-03-06 07:35:01 +01:00
|
|
|
$(QUIET)test -f $(makfile) && $(MAKE) -f $(makfile) $@ || exit 0
|
2006-12-04 10:50:04 +01:00
|
|
|
$(RM) ppport.h
|
|
|
|
$(RM) $(makfile)
|
|
|
|
$(RM) $(makfile).old
|
|
|
|
|
|
|
|
ifdef NO_PERL_MAKEMAKER
|
|
|
|
instdir_SQ = $(subst ','\'',$(prefix)/lib)
|
|
|
|
$(makfile): ../GIT-CFLAGS Makefile
|
|
|
|
echo all: > $@
|
|
|
|
echo ' :' >> $@
|
|
|
|
echo install: >> $@
|
|
|
|
echo ' mkdir -p $(instdir_SQ)' >> $@
|
|
|
|
echo ' $(RM) $(instdir_SQ)/Git.pm; cp Git.pm $(instdir_SQ)' >> $@
|
|
|
|
echo ' $(RM) $(instdir_SQ)/Error.pm; \
|
|
|
|
cp private-Error.pm $(instdir_SQ)/Error.pm' >> $@
|
|
|
|
echo instlibdir: >> $@
|
|
|
|
echo ' echo $(instdir_SQ)' >> $@
|
|
|
|
else
|
|
|
|
$(makfile): Makefile.PL ../GIT-CFLAGS
|
2007-05-04 00:58:56 +02:00
|
|
|
$(PERL_PATH) $< PREFIX='$(prefix_SQ)'
|
2006-12-04 10:50:04 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# this is just added comfort for calling make directly in perl dir
|
|
|
|
# (even though GIT-CFLAGS aren't used yet. If ever)
|
|
|
|
../GIT-CFLAGS:
|
|
|
|
$(MAKE) -C .. GIT-CFLAGS
|