2013-07-22 04:23:25 +02:00
|
|
|
OS ?= Linux
|
|
|
|
|
2013-06-15 23:14:54 +02:00
|
|
|
PYTHON_QUBESPATH = $(PYTHON_SITEPATH)/qubes
|
2013-07-22 04:23:25 +02:00
|
|
|
SETTINGS_SUFFIX = $(BACKEND_VMM)-$(OS)
|
2013-06-15 23:14:54 +02:00
|
|
|
|
|
|
|
all:
|
|
|
|
python -m compileall .
|
|
|
|
python -O -m compileall .
|
2013-07-29 03:51:39 +02:00
|
|
|
make -C storage all
|
2013-06-15 23:14:54 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
ifndef PYTHON_SITEPATH
|
|
|
|
$(error PYTHON_SITEPATH not defined)
|
|
|
|
endif
|
|
|
|
mkdir -p $(DESTDIR)$(PYTHON_QUBESPATH)
|
|
|
|
cp qubes.py $(DESTDIR)$(PYTHON_QUBESPATH)
|
|
|
|
cp qubes.py[co] $(DESTDIR)$(PYTHON_QUBESPATH)
|
|
|
|
cp qubesutils.py $(DESTDIR)$(PYTHON_QUBESPATH)
|
|
|
|
cp qubesutils.py[co] $(DESTDIR)$(PYTHON_QUBESPATH)
|
|
|
|
cp guihelpers.py $(DESTDIR)$(PYTHON_QUBESPATH)
|
|
|
|
cp guihelpers.py[co] $(DESTDIR)$(PYTHON_QUBESPATH)
|
|
|
|
cp notify.py $(DESTDIR)$(PYTHON_QUBESPATH)
|
|
|
|
cp notify.py[co] $(DESTDIR)$(PYTHON_QUBESPATH)
|
|
|
|
cp backup.py $(DESTDIR)$(PYTHON_QUBESPATH)
|
|
|
|
cp backup.py[co] $(DESTDIR)$(PYTHON_QUBESPATH)
|
2013-07-22 04:23:25 +02:00
|
|
|
ifneq ($(BACKEND_VMM),)
|
2013-07-29 03:56:51 +02:00
|
|
|
if [ -r settings-$(SETTINGS_SUFFIX).py ]; then \
|
|
|
|
cp settings-$(SETTINGS_SUFFIX).py $(DESTDIR)$(PYTHON_QUBESPATH)/settings.py && \
|
|
|
|
cp settings-$(SETTINGS_SUFFIX).pyc $(DESTDIR)$(PYTHON_QUBESPATH)/settings.pyc && \
|
|
|
|
cp settings-$(SETTINGS_SUFFIX).pyo $(DESTDIR)$(PYTHON_QUBESPATH)/settings.pyo; \
|
|
|
|
fi
|
2013-07-22 04:23:25 +02:00
|
|
|
endif
|
2013-07-29 03:51:39 +02:00
|
|
|
make -C storage install
|