forked from travitch/whole-program-llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (59 loc) · 1.96 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
70
71
72
73
74
75
76
77
78
all:
@echo ''
@echo 'Here are the targets:'
@echo ''
@echo 'To develop : "make develop"'
@echo 'To test install : "make testinstall"'
@echo 'To install : "make install"'
@echo 'To test publish : "make testpublish"'
@echo 'To publish : "make publish"'
@echo 'To check clang : "make check_clang"'
@echo ''
@echo 'e.g. on linux: LLVM_COMPILER_PATH=/usr/lib/llvm-3.5/bin/ make check_clang'
@echo ''
@echo 'To check dragonegg : "make check_dragonegg"'
@echo ''
@echo 'e.g. on linux: PATH=/usr/lib/llvm-3.3/bin:... make check_dragonegg'
@echo ''
@echo 'To turn md 2 html : "make zippity"'
@echo ''
@echo 'then upload the zip file to https://pypi.python.org/pypi'
@echo ''
@echo 'To pylint : "make lint"'
@echo ''
#local editable install for developing
develop:
pip install -e .
dist: clean
python setup.py bdist_wheel
# If you need to push this project again,
# INCREASE the version number in wllvm/version.py,
# otherwise the server will give you an error.
testpublish: dist
python setup.py register -r https://testpypi.python.org/pypi
python setup.py sdist upload -r https://testpypi.python.org/pypi
testinstall:
pip install -i https://testpypi.python.org/pypi wllvm
publish: dist
python setup.py register -r https://pypi.python.org/pypi
python setup.py sdist upload -r https://pypi.python.org/pypi
install:
pip install
check_clang:
cd test; python -m unittest -v test_base_driver test_clang_driver
check_dragonegg:
cd test; python -m unittest -v test_base_driver test_dragonegg_driver
zippity:
rm -rf doczip*; mkdir doczip;
cat README.md | pandoc -f markdown_github > doczip/index.html
zip -r -j doczip.zip doczip
clean:
rm -f wllvm/*.pyc wllvm/*~
PYLINT = $(shell which pylint)
lint:
ifeq ($(PYLINT),)
$(error lint target requires pylint)
endif
# @ $(PYLINT) -E wllvm/*.py
# for detecting more than just errors:
@ $(PYLINT) --rcfile=.pylintrc wllvm/*.py