-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (26 loc) · 777 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
MY_USER := $(shell id -u)
MY_GROUP := $(shell id -g)
ME := $(MY_USER):$(MY_GROUP)
SPIFF_ARENA_DIR := ../../sartography/spiff-arena
BPMN_SPEC_DIR := $(shell pwd)/src/git_debranch
venv:
python -m venv env
dev-reqs:
pip install -r dev_requirements.txt
dev-env: venv dev-reqs
@/bin/true
take-ownership:
sudo chown -R $(ME) .
check-ownership:
find . ! -user $(MY_USER) ! -group $(MY_GROUP)
run-editor: stop-editor
cd $(SPIFF_ARENA_DIR) && \
SPIFF_EDITOR_URL_PATH=/admin/process-models/bpmn:git-debranch \
./bin/run_editor $(BPMN_SPEC_DIR)
stop-editor:
cd $(SPIFF_ARENA_DIR) && ./bin/stop_editor
update-editor:
cd $(SPIFF_ARENA_DIR) && ./bin/update_editor
.PHONY: take-ownership check-ownership \
run-editor stop-editor update-editor \
dev-env venv dev-reqs