summaryrefslogtreecommitdiffstats
path: root/ipalib/Makefile
blob: 5bd84fa4a7e77c14abc84f8edb50e24ac318ddee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PYTHON ?= /usr/bin/python2
PYTHONLIBDIR ?= $(shell $(PYTHON) -c "from distutils.sysconfig import *; print(get_python_lib())")

all:
	# Pure Python; no need to build
	true

check:

.PHONY: install
install:
	if [ "$(DESTDIR)" = "" ]; then \
		$(PYTHON) setup.py install; \
	else \
		$(PYTHON) setup.py install --root $(DESTDIR); \
	fi

clean:
	rm -f *~ *.pyc __pycache__/

distclean: clean
	rm -f setup.py

maintainer-clean: distclean
	rm -rf build