-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Makefile
96 lines (78 loc) · 3.54 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
# The Qubes OS Project, http://www.qubes-os.org
#
# Copyright (C) 2010 Joanna Rutkowska <[email protected]>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
#
MANDIR ?= /usr/share/man
LIBDIR ?= /usr/lib64
VCHAN_PKG ?= vchan-xen
export LIBDIR CFLAGS
help:
@echo "Qubes GUI main Makefile:" ;\
echo "make all <--- build binaries";\
echo "make install <--- install files into \$$DESTDIR";\
echo "make clean <--- clean all the binary files";\
exit 0;
selinux_policies ::= qubes-gui-daemon.pp
all_targets := gui-daemon/qubes-guid gui-daemon/qubes-guid.1 \
shmoverride/shmoverride.so \
shmoverride/X-wrapper-qubes \
shmoverride/Xwayland-wrapper \
pulse/pacat-simple-vchan \
screen-layout-handler/watch-screen-layout-changes
all: $(all_targets)
all-selinux: selinux/$(selinux_policies)
.PHONY: $(all_targets) all-selinux install tar clean help
gui-daemon/qubes-guid gui-daemon/qubes-guid.1:
$(MAKE) -C gui-daemon qubes-guid qubes-guid.1
shmoverride/shmoverride.so:
(cd shmoverride; $(MAKE) shmoverride.so)
shmoverride/X-wrapper-qubes:
(cd shmoverride; $(MAKE) X-wrapper-qubes)
shmoverride/Xwayland-wrapper:
(cd shmoverride; $(MAKE) Xwayland-wrapper)
pulse/pacat-simple-vchan:
$(MAKE) -C pulse pacat-simple-vchan
screen-layout-handler/watch-screen-layout-changes:
$(MAKE) -C screen-layout-handler watch-screen-layout-changes
selinux/$(selinux_policies):
$(MAKE) -C selinux -f /usr/share/selinux/devel/Makefile
install:
install -D gui-daemon/qubes-guid $(DESTDIR)/usr/bin/qubes-guid
install -m 0644 -D gui-daemon/qubes-guid.1 $(DESTDIR)$(MANDIR)/man1/qubes-guid.1
install -D pulse/pacat-simple-vchan $(DESTDIR)/usr/bin/pacat-simple-vchan
install -D shmoverride/X-wrapper-qubes $(DESTDIR)/usr/bin/X-wrapper-qubes
install -D shmoverride/shmoverride.so $(DESTDIR)$(LIBDIR)/qubes-gui-daemon/shmoverride.so
install -D shmoverride/Xwayland-wrapper $(DESTDIR)/usr/libexec/qubes/wrappers/Xwayland
install -D -m 0644 gui-daemon/guid.conf $(DESTDIR)/etc/qubes/guid.conf
install -D gui-daemon/qubes-localgroup.sh $(DESTDIR)/etc/X11/xinit/xinitrc.d/qubes-localgroup.sh
install -D -m 0644 common/90-default-gui-daemon.policy $(DESTDIR)/etc/qubes/policy.d/90-default-gui-daemon.policy
install -D screen-layout-handler/watch-screen-layout-changes $(DESTDIR)/usr/libexec/qubes/watch-screen-layout-changes
install -D -m 0644 screen-layout-handler/qubes-screen-layout-watches.desktop $(DESTDIR)/etc/xdg/autostart/qubes-screen-layout-watches.desktop
$(MAKE) -C window-icon-updater install
install-selinux:
install -D -t $(DESTDIR)/usr/share/selinux/packages selinux/$(selinux_policies)
tar:
git archive --format=tar --prefix=qubes-gui/ HEAD -o qubes-gui.tar
clean:
(cd common; $(MAKE) clean)
(cd gui-common; $(MAKE) clean)
(cd gui-daemon; $(MAKE) clean)
(cd shmoverride; $(MAKE) clean)
$(MAKE) -C pulse clean
.PHONY: all clean tar install help