forked from QubesOS/qubes-core-qrexec
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
72 lines (59 loc) · 2.07 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
MAKEFLAGS=-r
CC ?= gcc
PYTHON ?= python3
export PYTHON GCC MAKEFLAGS
help:
:
.PHONY: help
clean:
+$(MAKE) -C libqrexec clean
+$(MAKE) -C daemon clean
+$(MAKE) -C agent clean
.PHONY: clean
all: all-base all-dom0 all-vm
.PHONY: all
all-base:
+$(MAKE) all -C libqrexec
$(PYTHON) setup.py build
.PHONY: all-base
install-base: all-base
+$(MAKE) install -C libqrexec
$(PYTHON) setup.py install -O1 $(PYTHON_PREFIX_ARG) --skip-build --root $(DESTDIR)
ln -s qrexec-policy-exec $(DESTDIR)/usr/bin/qrexec-policy
install -d $(DESTDIR)/usr/lib/qubes -m 755
install -t $(DESTDIR)/usr/lib/qubes -m 755 lib/*
install -d $(DESTDIR)/etc/qubes-rpc -m 755
ln -s /var/run/qubes/policy-agent.sock $(DESTDIR)/etc/qubes-rpc/policy.Ask
ln -s /var/run/qubes/policy-agent.sock $(DESTDIR)/etc/qubes-rpc/policy.Notify
install -d $(DESTDIR)/etc/xdg/autostart -m 755
install -m 644 policy-agent-extra/qrexec-policy-agent.desktop \
$(DESTDIR)/etc/xdg/autostart/qrexec-policy-agent.desktop
.PHONY: install-base
all-dom0:
+$(MAKE) all -C daemon
.PHONY: all-dom0
install-dom0: all-dom0
+$(MAKE) install -C daemon
install -d $(DESTDIR)/etc/qubes-rpc -m 755
install -t $(DESTDIR)/etc/qubes-rpc -m 755 qubes-rpc-dom0/*
install -d $(DESTDIR)/etc/qubes-rpc/policy -m 775
install -d $(DESTDIR)/etc/qubes-rpc/policy/include -m 775
install -d $(DESTDIR)/etc/qubes/policy.d -m 775
install -d $(DESTDIR)/etc/qubes/policy.d/include -m 775
install -t $(DESTDIR)/etc/qubes/policy.d -m 664 policy.d/*
install -d $(DESTDIR)/lib/systemd/system -m 755
install -t $(DESTDIR)/lib/systemd/system -m 644 systemd/qubes-qrexec-policy-daemon.service
.PHONY: install-dom0
all-vm:
+$(MAKE) all -C agent
.PHONY: all-vm
install-vm: all-vm
+$(MAKE) install -C agent
install -d $(DESTDIR)/lib/systemd/system -m 755
install -t $(DESTDIR)/lib/systemd/system -m 644 systemd/qubes-qrexec-agent.service
install -m 0644 -D qubes-rpc-config/README $(DESTDIR)/etc/qubes/rpc-config/README
# install -d $(DESTDIR)/etc/qubes-rpc -m 755
# install -t $(DESTDIR)/etc/qubes-rpc -m 755 qubes-rpc/*
.PHONY: install-vm
all: all-vm all-dom0
.PHONY: all