-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 763 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 763 Bytes
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
ifeq ($(OS),Windows_NT)
VUSTED := bin\vusted
else
VUSTED := bin/vusted
endif
include spec/.shared/neovim-plugin.mk
spec/.shared/neovim-plugin.mk:
git clone https://github.com/notomo/workflow.git --depth 1 spec/.shared
test:
${VUSTED} --shuffle
.PHONY: test
VERSION :=
ROCKSPEC_FILE := rockspec/vusted-${VERSION}-1.rockspec
release: new_rockspec
luarocks install dkjson
luarocks upload ${ROCKSPEC_FILE} --temp-key=${LUAROCKS_API_KEY}
.PHONY: release
new_rockspec:
luarocks new_version rockspec/vusted-x.x.x-1.rockspec --dir rockspec --tag=v${VERSION}
cat ${ROCKSPEC_FILE}
luarocks make ${ROCKSPEC_FILE}
.PHONY: new_rockspec
install:
luarocks --lua-version=5.1 make
.PHONY: install
_init:
luarocks write_rockspec --lua-versions=5.1
.PHONY: _init