forked from ealter/vim_turing_machine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (28 loc) · 758 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
.PHONY: minimal
minimal: venv
venv:
tox -e venv
.PHONY: install-hooks
install-hooks: venv
venv/bin/pre-commit install-hooks
venv/bin/pre-commit install
.PHONY: test
test:
tox
.PHONY: clean
clean:
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
rm -rf .tox
rm -rf venv
rm machine.vim
.PHONY: run
run: venv
venv/bin/python -m vim_turing_machine.machines.merge_overlapping_intervals.merge_overlapping_intervals '[[1,2],[2,3],[5,8]]' 5
.PHONY: run-vim
build-vim: venv
venv/bin/python -m vim_turing_machine.machines.merge_overlapping_intervals.vim_merge_overlapping_intervals '[[1,2],[2,3],[5,8]]' 5
open-vim-machine: build-vim
vim -u vimrc machine.vim
run-vim-machine: build-vim
vim -u vimrc machine.vim -c ':normal gg0yy@"'