2012-01-24 15:50:21 +01:00
|
|
|
RPMS_DIR=rpm/
|
2011-04-04 12:59:59 +02:00
|
|
|
VERSION := $(shell cat version)
|
2017-06-26 17:11:38 +02:00
|
|
|
|
|
|
|
PYTHON ?= python3
|
|
|
|
|
2012-01-24 15:50:21 +01:00
|
|
|
help:
|
|
|
|
@echo "make rpms -- generate binary rpm packages"
|
|
|
|
@echo "make res -- compile resources"
|
|
|
|
@echo "make update-repo-current -- copy newly generated rpms to qubes yum repo"
|
|
|
|
@echo "make update-repo-unstable -- same, but to -testing repo"
|
|
|
|
@echo "make update-repo-installer -- copy dom0 rpms to installer repo"
|
|
|
|
|
|
|
|
|
2012-11-14 01:42:14 +01:00
|
|
|
rpms: rpms-dom0
|
|
|
|
|
|
|
|
rpms-vm:
|
|
|
|
|
|
|
|
rpms-dom0:
|
2012-01-24 15:50:21 +01:00
|
|
|
rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/qmgr.spec
|
|
|
|
rpm --addsign $(RPMS_DIR)/x86_64/qubes-manager*$(VERSION)*.rpm
|
2010-05-11 16:51:31 +02:00
|
|
|
|
2017-06-26 16:49:35 +02:00
|
|
|
qubesmanager/ui_%.py: ui/%.ui
|
2017-06-28 12:25:28 +02:00
|
|
|
pyuic4 --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:
|
2017-06-28 12:25:28 +02:00
|
|
|
pyrcc4 -py3 -o qubesmanager/resources_rc.py resources.qrc
|
2012-01-24 15:50:21 +01:00
|
|
|
|
2017-01-22 04:43:13 +01:00
|
|
|
translations:
|
|
|
|
lrelease-qt4 qubesmanager.pro
|
|
|
|
|
2017-06-26 17:11:38 +02:00
|
|
|
python:
|
|
|
|
$(PYTHON) ./setup.py build
|
|
|
|
|
|
|
|
python_install:
|
|
|
|
$(PYTHON) ./setup.py install -O1 --skip-build --root $(DESTDIR)
|
|
|
|
|
2017-01-22 04:43:13 +01:00
|
|
|
update_ts: res
|
|
|
|
pylupdate4 qubesmanager.pro
|
|
|
|
|
2012-01-24 15:50:21 +01:00
|
|
|
update-repo-current:
|
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/current/dom0/rpm/
|
|
|
|
|
|
|
|
update-repo-current-testing:
|
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/current-testing/dom0/rpm/
|
|
|
|
|
|
|
|
update-repo-unstable:
|
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/unstable/dom0/rpm/
|
|
|
|
|
|
|
|
update-repo-installer:
|
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../installer/yum/qubes-dom0/rpm/
|
|
|
|
|
2011-11-09 12:49:11 +01:00
|
|
|
clean:
|