blob: c0b35ef7d80f431e20c67420ba3049410b86b4ed (
plain)
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
|
# Makefile for "fg21sim"
default:
@echo "+-------------------------------------------------------------+"
@echo "| Make Utility for fg21sim |"
@echo "+-------------------------------------------------------------+"
@echo "Available targets:"
@echo " + venv"
@echo " create virtualenv 'venv' and install the dependencies"
@echo " + test"
@echo " run the test cases"
# Create virtualenv and install/update the dependencies
venv: venv/bin/activate
venv/bin/activate: requirements.txt
test -d "venv" || virtualenv -p python3 venv
./venv/bin/pip3 install --user -r requirements.txt
touch venv/bin/activate
# Install this package to the virtualenv
devbuild: venv
./venv/bin/python3 setup.py install
# Run the test cases
test: devbuild
./venv/bin/python3 tests/runtests.py
|