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