-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
54 lines (39 loc) · 1.13 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Viconf Makefile
# May 08, 2019
PYTHON ?= python3
BUILD_VIRTUAL_ENV:=.venv
source := $(shell source)
activate=$(BUILD_VIRTUAL_ENV)/bin/activate
.PHONY: install check clean vint flake8
help:
@echo "Please use one of the following targets.:"
@echo "venv"
@echo "vint"
@echo "flake8"
@echo "lint"
@echo "clean"
$(dir $(BUILD_VIRTUAL_ENV)):
mkdir -p $@
$(BUILD_VIRTUAL_ENV): | $(dir $(BUILD_VIRTUAL_ENV))
@$(PYTHON) -m venv $@
$(BUILD_VIRTUAL_ENV)/bin/vint: | $(BUILD_VIRTUAL_ENV)
$|/bin/python -m pip install vim-vint
$(BUILD_VIRTUAL_ENV)/bin/flake8: | $(BUILD_VIRTUAL_ENV)
venv:
@echo "Making a venv\n"
@$(PYTHON) -m venv --prompt nvim $(BUILD_VIRTUAL_ENV)
@echo "Activating it\n"
$(source) $(activate)
$(PYTHON) -m pip install vim-vint
$|/bin/python -m pip install -q flake8>=3.5.0
vint: $(BUILD_VIRTUAL_ENV)/bin/vint
$(BUILD_VIRTUAL_ENV)/bin/vint after autoload ftplugin plugin
flake8: $(BUILD_VIRTUAL_ENV)/bin/flake8
$(BUILD_VIRTUAL_ENV)/bin/flake8 pythonx
run: $(BUILD_VIRTUAL_ENV)/bin/pynvim
lint:
vint after autoload ftplugin plugin syntax
lint:
vint after autoload ftplugin plugin syntax
clean:
rm -rf build