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

Maxime Perrotin's avatar
Maxime Perrotin committed
3
4
regression:
	make -C tests/regression all
Maxime Perrotin's avatar
Maxime Perrotin committed
5

6
7
8
9
flake8:
	@echo Generating flake8_report file
	flake8 opengeode.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

Maxime Perrotin's avatar
Maxime Perrotin committed
10
11
coverage: 
	make -C tests/regression coverage
Maxime Perrotin's avatar
Maxime Perrotin committed
12
13
14
15
16
17
18
19

compile-all:
	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

install: compile-all
	mkdir -p opengeode
Maxime Perrotin's avatar
Maxime Perrotin committed
20
	for f in AdaGenerator.py __init__.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; do echo Installing $$f && cp $$f opengeode; done
Maxime Perrotin's avatar
Maxime Perrotin committed
21
22
23
24
25
26
27
28
	python setup.py install

publish: install
	python setup.py sdist upload

clean:
	find . -name '*~' | xargs rm -f
	find . -name '*.o' | xargs rm -f