-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (42 loc) · 921 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
define USAGE
Development:
simulator Run application with simulator
clean
endef
export USAGE
help:
@echo "$$USAGE"
.NOTPARALLEL:
.rmkit:
git clone \
--depth=1 \
https://github.com/rmkit-dev/rmkit.git \
.rmkit
.venv/bin/activate:
@echo "Setting up development virtual env in .venv"
python -m venv .venv; \
. .venv/bin/activate; \
python -m pip install -r requirements-dev.txt
.rmkit/src/build/simple: .rmkit .venv/bin/activate
. .venv/bin/activate; \
cd .rmkit; \
TARGET=dev make simple
define SCRIPT
#!/bin/sh
. .venv/bin/activate
exec python myapp.py --simple-executable=.rmkit/src/build/simple
endef
export SCRIPT
.resim.sh: .rmkit/src/build/simple
echo "$$SCRIPT" >> .resim.sh
chmod +x .resim.sh
simulate: .venv/bin/activate .resim.sh
. .venv/bin/activate; \
resim ./.resim.sh
clean:
git clean --force -dX
rm -rf .rmkit
.PHONY: \
all \
simulator \
clean