Commit 31d4ce1a authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Move files in subdirectory for setup.py

parent 659f832d
......@@ -26,29 +26,22 @@ coverage:
flake8:
@echo Generating flake8_report file
@flake8 opengeode.py Pr.py sdlSymbols.py genericSymbols.py ogParser.py \
@cd opengeode && 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 TextInteraction.py > flake8_report
compile-all:
@pyside-rcc opengeode.qrc -o icons.py
@pyside-rcc opengeode.qrc -o opengeode/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
@mv sdl92*.py opengeode
install: compile-all
@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 TextInteraction.py ; \
do echo Installing $$f && cp $$f opengeode ; \
done
@python setup.py install
@python setup.py install --record install.record
publish: install
@python setup.py sdist upload
......@@ -56,7 +49,7 @@ publish: install
freeze-linux:
@bash -c "test -f pyinstaller-opengeode.tar.gz || wget http://download.tuxfamily.org/taste/misc/pyinstaller-opengeode.tar.gz"
@tar zxvf pyinstaller-opengeode.tar.gz
@cd pyinstaller-pyinstaller-953f6e3 && python pyinstaller.py ../opengeode.py --onefile && mkdir -p ../dist-linux && mv opengeode/dist/opengeode ../dist-linux && cd ..
@cd pyinstaller-pyinstaller-953f6e3 && python pyinstaller.py ../opengeode/opengeode.py --onefile && mkdir -p ../dist-linux && mv opengeode/dist/opengeode ../dist-linux && cd ..
@echo binary installed in ./dist-linux/
clean:
......@@ -66,6 +59,7 @@ clean:
@rm -f pyinstaller-opengeode.tar.gz
@rm -rf dist-linux
@rm -rf pyinstaller-pyinstaller-953f6e3
@rm -rf opengode/*.pyc dist build *.egg-info
.PHONY: all test-parse test-ada test-llvm benchmark benchmark-O1 benchmark-O2 \
benchmark-O3 flake8 coverage compile-all install publish clean freeze-linux
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment