Make the gui targets file by file

master
Salvo 'LtWorf' Tomaselli 2020-06-02 20:03:59 +07:00
parent ee429500ec
commit 6da017a562
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 11 additions and 4 deletions

@ -1,14 +1,21 @@
.PHONY: gui
gui: pyqt
gui: relational_gui/survey.py relational_gui/maingui.py relational_gui/rel_edit.py relational_gui/resources.py
pyqt:
relational_gui/survey.py:
pyuic5 relational_gui/survey.ui > relational_gui/survey.py
relational_gui/maingui.py:
pyuic5 relational_gui/maingui.ui > relational_gui/maingui.py
pyuic5 relational_gui/rel_edit.ui > relational_gui/rel_edit.py
pyrcc5 relational_gui/resources.qrc > relational_gui/resources.py
sed -i 's/QtWidgets.QPlainTextEdit/editor.Editor/g' relational_gui/maingui.py
echo 'from . import editor' >> relational_gui/maingui.py
relational_gui/rel_edit.py:
pyuic5 relational_gui/rel_edit.ui > relational_gui/rel_edit.py
relational_gui/resources.py:
pyrcc5 relational_gui/resources.qrc > relational_gui/resources.py
.PHONY: test
test:
./driver.py