-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
Makefile
40 lines (30 loc) · 800 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
NAME = node
TITLE = Node.vim
VERSION = 0.8.1
ID = 4674
TEST_OPTS =
love:
@echo "Feel like makin' love."
test: spec
autotest: autospec
spec: $(shell find . -name "*_test.rb")
@ruby -rbundler/setup $(addprefix -r./,$^) -e "" -- $(TEST_OPTS)
autospec:
@bundle exec guard start --no-interactions
pack:
rm -rf "$(NAME)-$(VERSION).zip"
zip -r "$(NAME)-$(VERSION).zip" * -x @.packignore
publish:
open "http://www.vim.org/scripts/add_script_version.php?script_id=$(ID)"
tag:
git tag "v$(VERSION)"
node.tar.gz:
wget -c "https://github.com/nodejs/node/archive/master.tar.gz" -O node.tar.gz
list-core-modules: node.tar.gz
tar tf node.tar.gz |\
egrep "^node[^/]*/lib/.+" |\
xargs -n1 basename -s .js |\
{ cat; echo node; } | sort
.PHONY: love
.PHONY: spec autospec
.PHONY: pack publish tag