From 6da017a5627995d1298bd505ebe1bcb469f5c67e Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Tue, 2 Jun 2020 20:03:59 +0200 Subject: [PATCH] Make the gui targets file by file --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7e796a2..4741ed2 100644 --- a/Makefile +++ b/Makefile @@ -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