-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
35 lines (31 loc) · 1.03 KB
/
Makefile
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
26
27
28
29
30
31
32
33
34
35
PYTHON ?= python3
UNITDIR ?= /usr/lib/systemd/system
PRESETDIR ?= /usr/lib/systemd/system-preset
MANDIR ?= /usr/share/man
QREXECDIR ?= /etc/qubes-rpc
UDEVRULESDIR ?= /lib/udev/rules.d
POSTINSTALLDIR ?= /etc/qubes/post-install.d
.PHONY: all
all:
$(PYTHON) setup.py build
.PHONY: install
install:
$(PYTHON) setup.py install -O1 --skip-build --root $(DESTDIR) \
$(SETUPOPTS)
install -d $(DESTDIR)$(UNITDIR)
install -m 0644 -t $(DESTDIR)$(UNITDIR) systemd/*.service
install -d $(DESTDIR)$(PRESETDIR)
install -m 0644 -t $(DESTDIR)$(PRESETDIR) systemd/*.preset
install -d $(DESTDIR)$(QREXECDIR)
install -t $(DESTDIR)$(QREXECDIR) qubes-rpc/*
install -d $(DESTDIR)$(UDEVRULESDIR)
install -m 0644 -t $(DESTDIR)$(UDEVRULESDIR) udev/*
install -d $(DESTDIR)$(POSTINSTALLDIR)
install -t $(DESTDIR)$(POSTINSTALLDIR) post-install.d/*.sh
.PHONY: install
install-policy:
install -d $(DESTDIR)$(QREXECDIR)/policy
install -m 0664 -t $(DESTDIR)$(QREXECDIR)/policy qubes-rpc-policy/*
.PHONY: clean
clean:
$(RM) -r build dist *.egg-info */__pycache__