forked from jpouellet/qubes-desktop-linux-common
-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
35 lines (27 loc) · 1.04 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
all:
$(PYTHON) setup.py build
install:
## Tools
install -D -m755 tools/qvm-xkill $(DESTDIR)/usr/bin/qvm-xkill
### Icons
mkdir -p $(DESTDIR)/usr/share/qubes/icons
for icon in icons/*.png; do \
gm convert -resize 48 $$icon $(DESTDIR)/usr/share/qubes/$$icon; \
done
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
cp icons/*.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/
### Appmenus
# force /usr/bin before /bin to have /usr/bin/python instead of /bin/python
PATH="/usr/bin:$$PATH" $(PYTHON) setup.py install $(PYTHON_PREFIX_ARG) -O1 --skip-build --root $(DESTDIR)
mkdir -p $(DESTDIR)/etc/qubes-rpc/policy
install -m 0755 qubesappmenus/qubes.SyncAppMenus $(DESTDIR)/etc/qubes-rpc/
install -m 0755 qubesappmenus/qubes.UpdateAppMenusFor $(DESTDIR)/etc/qubes-rpc/
install -m 0755 qubesappmenus/qubes.RemoveAppMenusFor $(DESTDIR)/etc/qubes-rpc/
$(MAKE) -C qubes-menus install
clean:
rm -rf qubesappmenus/__pycache__
rm -rf qubesappmenusext/__pycache__
rm -f .coverage
rm -rf debian/changelog.*
rm -rf pkgs