| # Makefile for the git_remote_helpers python support modules |
| # Shell quote (do not use $(call) to accommodate ancient setups); |
| DESTDIR_SQ = $(subst ','\'',$(DESTDIR)) |
| ifeq ($(uname_S),FreeBSD) |
| PYTHON_PATH = /usr/local/bin/python |
| PYTHON_PATH = /usr/bin/python |
| PYLIBDIR=$(shell $(PYTHON_PATH) -c \ |
| print 'lib/python%i.%i/site-packages' % sys.version_info[:2]") |
| $(QUIET)$(PYTHON_PATH) $(pysetupfile) $(QUIETSETUP) build |
| $(PYTHON_PATH) $(pysetupfile) install --prefix $(DESTDIR_SQ)$(prefix) |
| instlibdir: $(pysetupfile) |
| @echo "$(DESTDIR_SQ)$(prefix)/$(PYLIBDIR)" |
| $(QUIET)$(PYTHON_PATH) $(pysetupfile) $(QUIETSETUP) clean -a |