2006-12-04 09:50:04 +00:00
|
|
|
#
|
|
|
|
# Makefile for perl support modules and routine
|
|
|
|
#
|
|
|
|
makfile:=perl.mak
|
|
|
|
|
|
|
|
PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
|
|
|
|
prefix_SQ = $(subst ','\'',$(prefix))
|
|
|
|
|
2007-03-06 07:09:14 +00:00
|
|
|
ifndef V
|
2007-03-06 06:35:01 +00:00
|
|
|
QUIET = @
|
|
|
|
endif
|
|
|
|
|
2006-12-04 09:50:04 +00:00
|
|
|
all install instlibdir: $(makfile)
|
2007-03-06 06:35:01 +00:00
|
|
|
$(QUIET)$(MAKE) -f $(makfile) $@
|
2006-12-04 09:50:04 +00:00
|
|
|
|
|
|
|
clean:
|
2007-03-06 06:35:01 +00:00
|
|
|
$(QUIET)test -f $(makfile) && $(MAKE) -f $(makfile) $@ || exit 0
|
2006-12-04 09:50:04 +00:00
|
|
|
$(RM) ppport.h
|
|
|
|
$(RM) $(makfile)
|
|
|
|
$(RM) $(makfile).old
|
|
|
|
|
|
|
|
ifdef NO_PERL_MAKEMAKER
|
|
|
|
instdir_SQ = $(subst ','\'',$(prefix)/lib)
|
|
|
|
$(makfile): ../GIT-CFLAGS Makefile
|
2008-07-22 21:15:41 +00:00
|
|
|
echo all: private-Error.pm Git.pm > $@
|
|
|
|
echo ' mkdir -p blib/lib' >> $@
|
|
|
|
echo ' $(RM) blib/lib/Git.pm; cp Git.pm blib/lib/' >> $@
|
|
|
|
echo ' $(RM) blib/lib/Error.pm' >> $@
|
|
|
|
'$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
|
|
|
|
echo ' cp private-Error.pm blib/lib/Error.pm' >> $@
|
2006-12-04 09:50:04 +00:00
|
|
|
echo install: >> $@
|
2009-09-21 19:44:05 +00:00
|
|
|
echo ' mkdir -p "$$(DESTDIR)$(instdir_SQ)"' >> $@
|
|
|
|
echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/Git.pm"; cp Git.pm "$$(DESTDIR)$(instdir_SQ)"' >> $@
|
|
|
|
echo ' $(RM) "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
|
2008-07-22 21:15:41 +00:00
|
|
|
'$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
|
2009-09-21 19:44:05 +00:00
|
|
|
echo ' cp private-Error.pm "$$(DESTDIR)$(instdir_SQ)/Error.pm"' >> $@
|
2006-12-04 09:50:04 +00:00
|
|
|
echo instlibdir: >> $@
|
|
|
|
echo ' echo $(instdir_SQ)' >> $@
|
|
|
|
else
|
|
|
|
$(makfile): Makefile.PL ../GIT-CFLAGS
|
2010-08-03 10:30:11 +00:00
|
|
|
$(PERL_PATH) $< PREFIX='$(prefix_SQ)' INSTALL_BASE=''
|
2006-12-04 09:50:04 +00: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
|