-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (30 loc) · 1007 Bytes
/
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
.SILENT:
.PHONY: install build
BINDIR ?= ~/bin
LIBDIR ?= `python3 -m site --user-site`
PYTHON ?= python3
info:
$(info Tweaks and improvements to the humble qubesadmin utilities.)
$(info Original tools are a sub-part of 'qubes-core-admin-client' repository.)
$(info Tweaked Tools will have a '-tt' suffix.)
$(info run 'make install' in current directory to install them at your '~/bin' & '~/.local/lib' directories.)
$(info run 'make remove' to remove them from your system.)
build:
$(PYTHON) setup.py build
clean:
rm -rfv qubesadmintt/*/__pycache__
rm -rfv build
rm -rfv *.egg-info
install:
install -v -d $(BINDIR)
install -v -d $(LIBDIR)
$(PYTHON) setup.py install -O1 $(PYTHON_PREFIX_ARG) --user
remove:
-rm -v $(BINDIR)/qvm-check-tt
-rm -v $(BINDIR)/qvm-kill-tt
-rm -v $(BINDIR)/qvm-ls-tt
-rm -v $(BINDIR)/qvm-pause-tt
-rm -v $(BINDIR)/qvm-remove-tt
-rm -v $(BINDIR)/qvm-shutdown-tt
-rm -v $(BINDIR)/qvm-start-tt
-rm -v $(BINDIR)/qvm-unpause-tt -rm -vrf $(LIBDIR)/qubesadmintt