2 # Makefile for the git_remote_helpers python support modules
6 # Shell quote (do not use $(call) to accommodate ancient setups);
7 DESTDIR_SQ
= $(subst ','\'',$(DESTDIR))
10 PYTHON_PATH = /usr/bin/python
20 PYLIBDIR=$(shell $(PYTHON_PATH) -c \
22 print 'lib
/python
%i.
%i
/site-packages
' % sys.version_info[:2]")
25 $(QUIET)$(PYTHON_PATH) $(pysetupfile) $(QUIETSETUP) build
27 install: $(pysetupfile)
28 $(PYTHON_PATH) $(pysetupfile) install --prefix $(DESTDIR_SQ)$(prefix)
30 instlibdir: $(pysetupfile)
31 @echo "$(DESTDIR_SQ)$(prefix)/$(PYLIBDIR)"
34 $(QUIET)$(PYTHON_PATH) $(pysetupfile) $(QUIETSETUP) clean -a