forked from l0b0/paths2openscad
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
70 lines (53 loc) · 1.41 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
MAKE = /usr/bin/make
DEST = /usr/share/inkscape/extensions
NAME = $(notdir $(CURDIR))
PYTHON_VERSION = 2.7.8
VIRTUALENV_VERSION = 1.11.6
.PHONY: all
all: test
include make-includes/python.mk
include make-includes/variables.mk
#
# pep8 seems to disallow visually aligned code in a tabular way.
# Therefore we ignored these pep8 errors:
#
# E127 continuation line over-indented for visual indent
# E221 multiple spaces before operator
# E241 multiple spaces after ','
# E272 multiple spaces before keyword
# E722 do not use bare except
#
PEP8_OPTIONS = --max-line-length=140 --ignore=E127,E221,E241,E722,E272
.PHONY: test
test: virtualenv
. virtualenv/bin/activate && \
pip2 install --requirement python-test-requirements.txt && \
$(MAKE) METHOD=git python-pep8
.PHONY: pep8
pep8:
$(MAKE) python-pep8
.PHONY: clean
clean: clean-build clean-download clean-virtualenv clean-dist
.PHONY: clean-dist
clean-dist:
$(RM) -rf distribute/$(NAME)
$(RM) -rf distribute/deb/files
.PHONY: clean-build
clean-build:
$(RM) -r build
.PHONY: clean-download
clean-download:
$(RM) -r download
.PHONY: clean-virtualenv
clean-virtualenv:
$(RM) virtualenv
$(RM) -r virtualenv-*/
.PHONY: dist
dist:
cd distribute; sh ./distribute.sh
@echo "Now upload to https://github.com/fablabnbg/inkscape-paths2openscad/releases/"
#install is used by dist.
install:
mkdir -p $(DEST)
install -m 755 -t $(DEST) *.py
install -m 644 -t $(DEST) *.inx