2011-04-04 12:59:59 +02:00
|
|
|
VERSION := $(shell cat version)
|
2017-06-26 17:11:38 +02:00
|
|
|
|
|
|
|
PYTHON ?= python3
|
|
|
|
|
2020-06-16 14:52:28 +02:00
|
|
|
LRELEASE_QT5 ?= $(if $(wildcard /etc/debian_version),lrelease,lrelease-qt5)
|
2012-01-24 15:50:21 +01:00
|
|
|
|
2020-06-16 14:52:28 +02:00
|
|
|
SETUPTOOLS_OPTS =
|
|
|
|
SETUPTOOLS_OPTS += $(if $(wildcard /etc/debian_version),--install-layout=deb,)
|
2010-05-11 16:51:31 +02:00
|
|
|
|
2017-06-26 16:49:35 +02:00
|
|
|
qubesmanager/ui_%.py: ui/%.ui
|
2019-05-22 23:10:09 +02:00
|
|
|
pyuic5 --from-imports -o $@ $<
|
2017-06-26 16:49:35 +02:00
|
|
|
|
|
|
|
ui: $(patsubst ui/%.ui,qubesmanager/ui_%.py,$(wildcard ui/*.ui))
|
|
|
|
|
2010-05-11 16:51:31 +02:00
|
|
|
res:
|
2019-05-22 23:10:09 +02:00
|
|
|
pyrcc5 -o qubesmanager/resources_rc.py resources.qrc
|
2012-01-24 15:50:21 +01:00
|
|
|
|
2017-01-22 04:43:13 +01:00
|
|
|
translations:
|
2020-06-16 14:52:28 +02:00
|
|
|
$(LRELEASE_QT5) qubesmanager.pro
|
2017-01-22 04:43:13 +01:00
|
|
|
|
2017-06-26 17:11:38 +02:00
|
|
|
python:
|
|
|
|
$(PYTHON) ./setup.py build
|
|
|
|
|
|
|
|
python_install:
|
2020-06-16 14:52:28 +02:00
|
|
|
$(PYTHON) ./setup.py install -O1 --skip-build --root $(DESTDIR) $(SETUPTOOLS_OPTS)
|
2017-06-26 17:11:38 +02:00
|
|
|
|
2017-01-22 04:43:13 +01:00
|
|
|
update_ts: res
|
2019-05-22 23:10:09 +02:00
|
|
|
pylupdate5 qubesmanager.pro
|
2017-01-22 04:43:13 +01:00
|
|
|
|
2020-06-16 14:52:28 +02:00
|
|
|
install:
|
|
|
|
mkdir -p $(DESTDIR)/usr/libexec/qubes-manager/
|
|
|
|
cp qubesmanager/mount_for_backup.sh $(DESTDIR)/usr/libexec/qubes-manager/
|
|
|
|
cp qubesmanager/qvm_about.sh $(DESTDIR)/usr/libexec/qubes-manager/
|
|
|
|
cp qubesmanager/dsa-4371-update $(DESTDIR)/usr/libexec/qubes-manager/
|
2012-01-24 15:50:21 +01:00
|
|
|
|
2020-06-16 14:52:28 +02:00
|
|
|
mkdir -p $(DESTDIR)/usr/share/applications
|
|
|
|
cp qubes-global-settings.desktop $(DESTDIR)/usr/share/applications/
|
|
|
|
cp qubes-vm-create.desktop $(DESTDIR)/usr/share/applications/
|
|
|
|
cp qubes-backup.desktop $(DESTDIR)/usr/share/applications/
|
|
|
|
cp qubes-backup-restore.desktop $(DESTDIR)/usr/share/applications/
|
|
|
|
cp qubes-qube-manager.desktop $(DESTDIR)/usr/share/applications/
|
|
|
|
cp qubes-template-manager.desktop $(DESTDIR)/usr/share/applications/
|
2012-01-24 15:50:21 +01:00
|
|
|
|
2020-06-16 14:52:28 +02:00
|
|
|
mkdir -p $(DESTDIR)/usr/share/desktop-directories/
|
|
|
|
cp qubes-tools.directory $(DESTDIR)/usr/share/desktop-directories/
|
2012-01-24 15:50:21 +01:00
|
|
|
|
2020-06-16 14:52:28 +02:00
|
|
|
mkdir -p $(DESTDIR)/etc/xdg/menus/applications-merged/
|
|
|
|
cp qubes-tools.menu $(DESTDIR)/etc/xdg/menus/applications-merged/
|
2012-01-24 15:50:21 +01:00
|
|
|
|
2011-11-09 12:49:11 +01:00
|
|
|
clean:
|
2018-04-12 22:09:53 +02:00
|
|
|
rm -f qubesmanager/ui_*.py
|
2020-06-16 14:52:28 +02:00
|
|
|
rm -rf debian/changelog.*
|
|
|
|
rm -rf pkgs
|