Makefile 1.72 KB
Newer Older
Maxime Perrotin's avatar
Maxime Perrotin committed
1
2
all: compile-all

dbarbera's avatar
dbarbera committed
3
test-parse:
4
	@$(MAKE) -s -C tests/regression $@
dbarbera's avatar
dbarbera committed
5
6

test-ada:
7
	@$(MAKE) -s -C tests/regression $@
Maxime Perrotin's avatar
Maxime Perrotin committed
8

dbarbera's avatar
dbarbera committed
9
test-llvm:
10
	@$(MAKE) -s -C tests/regression $@
11

dbarbera's avatar
dbarbera committed
12
benchmark:
13
14
15
16
17
18
19
20
21
22
	@$(MAKE) -s -C tests/regression $@

benchmark-O1:
	@$(MAKE) -s -C tests/regression $@

benchmark-O2:
	@$(MAKE) -s -C tests/regression $@

benchmark-O3:
	@$(MAKE) -s -C tests/regression $@
dbarbera's avatar
dbarbera committed
23

24
coverage:
25
	@$(MAKE) -s -C tests/regression $@
dbarbera's avatar
dbarbera committed
26

27
28
flake8:
	@echo Generating flake8_report file
dbarbera's avatar
dbarbera committed
29
30
31
32
	@flake8 opengeode.py Pr.py sdlSymbols.py genericSymbols.py ogParser.py \
	        AdaGenerator.py Renderer.py Clipboard.py Lander.py ogAST.py \
	        undoCommands.py  Connectors.py Asn1scc.py Helper.py \
	        Statechart.py > flake8_report
33

Maxime Perrotin's avatar
Maxime Perrotin committed
34
compile-all:
dbarbera's avatar
dbarbera committed
35
36
37
38
39
40
	@pyside-rcc opengeode.qrc -o icons.py
	@if [ ! -f antlr-3.1.3.tar.bz2 ] ; \
		then wget http://download.tuxfamily.org/taste/misc/antlr-3.1.3.tar.bz2 ; \
		tar jxvf antlr-3.1.3.tar.bz2 ; \
	fi
	@CLASSPATH=$$PWD/antlr-3.1.3/lib/antlr-3.1.3.jar java org.antlr.Tool sdl92.g
Maxime Perrotin's avatar
Maxime Perrotin committed
41
42

install: compile-all
dbarbera's avatar
dbarbera committed
43
44
45
46
47
48
49
50
51
	@mkdir -p opengeode
	@for f in AdaGenerator.py __init__.py Pr.py genericSymbols.py icons.py \
	          ogAST.py ogParser.py opengeode.py Renderer.py samnmax.py \
	          sdl92Lexer.py sdl92Parser.py sdlSymbols.py undoCommands.py \
	          Clipboard.py Statechart.py LlvmGenerator.py Lander.py Helper.py \
	          Connectors.py Asn1scc.py ; \
	    do echo Installing $$f && cp $$f opengeode ; \
	done
	@python setup.py install
Maxime Perrotin's avatar
Maxime Perrotin committed
52
53

publish: install
dbarbera's avatar
dbarbera committed
54
	@python setup.py sdist upload
Maxime Perrotin's avatar
Maxime Perrotin committed
55
56

clean:
57
	@$(MAKE) -s -C tests/regression $@
dbarbera's avatar
dbarbera committed
58
59
	@find . -name '*~' | xargs rm -f
	@find . -name '*.o' | xargs rm -f
dbarbera's avatar
dbarbera committed
60

61
62
.PHONY: all test-parse test-ada test-llvm benchmark benchmark-O1 benchmark-O2 \
	    benchmark-O3 flake8 coverage compile-all install publish clean