-
Notifications
You must be signed in to change notification settings - Fork 127
/
Makefile
63 lines (45 loc) · 1.34 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
all:
@echo ''
@echo 'Here are the targets:'
@echo ''
@echo 'To develop : "make develop"'
@echo 'To install : "make install"'
@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 pylint : "make lint"'
@echo ''
#local editable install for developing
develop:
pip3 install -e .
dist: clean
python3 setup.py sdist 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.
#publish: dist
# python setup.py sdist upload
publish: dist
python3 -m twine upload dist/*
install:
pip3 install
check_clang:
cd test; python3 -m unittest -v test_base_driver test_clang_driver
check_dragonegg:
cd test; python3 -m unittest -v test_base_driver test_dragonegg_driver
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