2014-01-10 13:49:36 +00:00
|
|
|
PYTHON = /usr/bin/python2
|
|
|
|
PYTHON_SITEARCH = `python2 -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1)'`
|
|
|
|
|
|
|
|
all:
|
|
|
|
$(PYTHON) -m compileall .
|
|
|
|
$(PYTHON) -O -m compileall .
|
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) *.py[co]
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir -p $(DESTDIR)/$(PYTHON_SITEARCH)/qubes/
|
2014-04-21 01:24:12 +00:00
|
|
|
ifeq (1,${DEBIANBUILD})
|
|
|
|
cp *.py $(DESTDIR)/$(PYTHON_SITEARCH)/qubes/
|
|
|
|
else
|
2014-01-10 13:49:36 +00:00
|
|
|
cp *.py* $(DESTDIR)/$(PYTHON_SITEARCH)/qubes/
|
2014-04-21 01:24:12 +00:00
|
|
|
endif
|
2014-01-10 13:49:36 +00:00
|
|
|
.PHONY: install
|