@@ -4,7 +4,9 @@ PYLAMA = $(LIBS)/pylama
4
4
5
5
.PHONY : clean
6
6
clean :
7
- find. -name" *.pyc" -delete
7
+ find$(CURDIR ) -name" *.pyc" -delete
8
+ rm -rf$(CURDIR ) /build
9
+ rm -rf* .deb
8
10
9
11
# Temporary disable rope tests on Travis
10
12
.PHONY : travis
@@ -29,3 +31,37 @@ $(PYLAMA):
29
31
30
32
$(PYLAMA ) /lint/pylama_pylint :
31
33
cp -r~ /Dropbox/projects/pylama/plugins/pylama_pylint/pylama_pylint/$(PYLAMA ) /lint/pylama_pylint
34
+
35
+ $(CURDIR ) /build :
36
+ mkdir -p$(CURDIR ) /build/usr/share/vim/addons
37
+ mkdir -p$(CURDIR ) /build/usr/share/vim/registry
38
+ cp -r after autoload doc ftplugin plugin pymode syntax$(CURDIR ) /build/usr/share/vim/addons/.
39
+ cp -r python-mode.yaml$(CURDIR ) /build/usr/share/vim/registry/.
40
+
41
+ TARGET? =$(CURDIR ) /deb
42
+ PACKAGE_VERSION? =$(shell git describe --tags `git rev-list master --tags --max-count=1`)
43
+ PACKAGE_NAME ="vim-python-mode"
44
+ PACKAGE_MAINTAINER ="Kirill Klenov <horneds@gmail.com>"
45
+ PACKAGE_URL =http://github.com/klen/python-mode
46
+ deb : clean$(CURDIR ) /build
47
+ @git co gh-pages
48
+ @fpm -s dir -t deb -a all\
49
+ -n$(PACKAGE_NAME ) \
50
+ -v$(PACKAGE_VERSION ) \
51
+ -m$(PACKAGE_MAINTAINER ) \
52
+ --url$(PACKAGE_URL ) \
53
+ --license" GNU lesser general public license" \
54
+ --description" Vim-Swissknife for python" \
55
+ --deb-user root\
56
+ --deb-group root\
57
+ -C$(CURDIR ) /build\
58
+ -d" python2.7" \
59
+ -d" vim-addon-manager" \
60
+ usr
61
+ @mkdir -p$(TARGET )
62
+ @prm --type deb --path$(TARGET ) \
63
+ --release precise\
64
+ --arch amd64,i386,all\
65
+ --component main\
66
+ --directory$(CURDIR ) \
67
+ --gpg horneds@gmail.com