forked from andete/madparts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (43 loc) · 1.03 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
# (c) 2013-2015 Joost Yervante Damad <joost@damad.be>
# License: GPL
PYTHON:=python
NOSE:=nosetests
# for OSX:
# PYTHON:=/opt/local/bin/python2.7
# NOSE:=/opt/local/bin/nosetests-2.7
# set DATA_DIR for unit tests
DATA_DIR := .
export DATA_DIR
all:
@$(PYTHON) madparts examples/TQFP32.coffee
size:
@echo 'python:'
@wc -l `find . -name '*.py'`
@echo 'coffee:'
@wc -l `find grind examples -name '*.coffee'`
@echo 'shaders:'
@wc -l `find . -name '*.vert'` `find . -name '*.frag'`
clean:
rm -rf build dist madparts.egg-info
sdist:
$(PYTHON) setup.py sdist
darwin:
$(PYTHON) setup.py py2app
apprun:
./dist/madparts.app/Contents/MacOS/madparts
testinstall:
rm -rf /tmp/bla
mkdir -p /tmp/bla
python setup.py install --root /tmp/bla/ --prefix /usr
test:
@$(NOSE)
testone:
@$(NOSE) -s test/madparts_test.py:test_kicad_old_export_polygon
list:
@$(NOSE) --collect-only -v
coverage:
@$(NOSE) --with-coverage \
--cover-package=coffee,export,gui,inter,syntax,util
win32:
@python27 setup.py py2exe
.PHONY: all clean size sdist test