-
Notifications
You must be signed in to change notification settings - Fork 51
/
Makefile
31 lines (22 loc) · 899 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
INSTALL_ARGS := # todo: add --break-system-packages if ubuntu
# Get git version information for make install
GIT_DESCRIBE := $(shell git describe --always --long --dirty)
.PHONY: all init clean install install_from_source install_only_top
all: init
virtme_ng_init/src/*.rs:
git submodule update --init --recursive
virtme/guest/bin/virtme-ng-init: virtme_ng_init/src/*.rs
BUILD_VIRTME_NG_INIT=1 python3 setup.py build
init: virtme/guest/bin/virtme-ng-init
@echo "Version: $(GIT_DESCRIBE)"
clean:
BUILD_VIRTME_NG_INIT=1 python3 setup.py clean
rm -f virtme/guest/bin/virtme-ng-init
# see README.md '* Install from source'
install: install_from_source
install_from_source:
@echo "Version: $(GIT_DESCRIBE)"
BUILD_VIRTME_NG_INIT=1 pip3 install --verbose $(INSTALL_ARGS) .
install_only_top:
@echo "Version: $(GIT_DESCRIBE)"
BUILD_VIRTME_NG_INIT=0 pip3 install --verbose $(INSTALL_ARGS) .