forked from oracle-samples/drgn-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (25 loc) · 1.01 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
# Copyright (c) 2023, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
VERSION=$(shell grep 'RELEASE_VERSION =' setup.py | sed s/\"//g | awk '{print($$3)}')
PYTHON ?= python3
# This allows you to add custom configuration:
# TARGET: set the target for "make rsync"
# It also allows creating custom targets, e.g. for development
-include config.mk
.PHONY: litevm-test
litevm-test:
tox --notest
-tox -e runner -- python -m testing.litevm.vm
.PHONY: vmcore-test
vmcore-test:
-tox -e runner -- python -m testing.vmcore test
test: litevm-test vmcore-test
.PHONY: docs
docs:
@$(PYTHON) -m tox -e docs
drgn_tools/_version.py:
python setup.py -V
.PHONY: rsync
rsync: drgn_tools/_version.py
@if [ -z "$(TARGET)" ]; then echo "error: TARGET unspecified. Either set it in config.mk, or use\nmake TARGET=hostname rsync"; exit 1; fi
rsync -avz --exclude "__pycache__" --exclude ".git" --exclude ".mypy_cache" ./drgn_tools $(TARGET):drgn_tools/