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 ifeq ($(uname_S),FreeBSD)
11 PYTHON_PATH = /usr/local/bin/python
13 PYTHON_PATH = /usr/bin/python
24 PYLIBDIR=$(shell $(PYTHON_PATH) -c \
26 print 'lib/python%i.%i/site-packages' % sys.version_info[:2]")
29 $(QUIET)$(PYTHON_PATH) $(pysetupfile) $(QUIETSETUP) build
31 install: $(pysetupfile)
32 $(PYTHON_PATH) $(pysetupfile) install --prefix $(DESTDIR_SQ)$(prefix)
34 instlibdir: $(pysetupfile)
35 @echo "$(DESTDIR_SQ)$(prefix)/$(PYLIBDIR)"
38 $(QUIET)$(PYTHON_PATH) $(pysetupfile) $(QUIETSETUP) clean -a