2015-02-19 06:59:41 +07:00
|
|
|
gui: pyqt
|
|
|
|
|
2013-06-30 04:45:35 +07:00
|
|
|
pyqt:
|
2015-02-19 06:59:41 +07:00
|
|
|
pyuic5 relational_gui/survey.ui > relational_gui/survey.py
|
|
|
|
pyuic5 relational_gui/maingui.ui > relational_gui/maingui.py
|
|
|
|
pyuic5 relational_gui/rel_edit.ui > relational_gui/rel_edit.py
|
2015-09-11 06:57:34 +07:00
|
|
|
pyrcc5 relational_gui/resources.qrc > relational_gui/resources.py
|
2011-10-08 12:33:08 +07:00
|
|
|
|
2011-03-22 11:17:41 +07:00
|
|
|
dist: clean
|
2009-02-24 08:32:00 +07:00
|
|
|
rm -rf /tmp/relational/
|
2011-03-04 06:18:22 +07:00
|
|
|
rm -rf /tmp/relational-*
|
2009-02-24 08:32:00 +07:00
|
|
|
mkdir /tmp/relational/
|
|
|
|
cp -R * /tmp/relational/
|
2011-03-03 12:11:02 +07:00
|
|
|
rm -rf /tmp/relational/windows
|
|
|
|
rm -rf /tmp/relational/debian/
|
2015-02-19 06:59:41 +07:00
|
|
|
|
2011-03-04 06:18:22 +07:00
|
|
|
#mv /tmp/relational /tmp/relational-`./relational_gui.py -v | grep Relational | cut -d" " -f2`
|
|
|
|
#(cd /tmp; tar -zcf relational.tar.gz relational-*/)
|
|
|
|
(cd /tmp; tar -zcf relational.tar.gz relational/)
|
2011-10-13 15:15:38 +07:00
|
|
|
mv /tmp/relational.tar.gz ./relational_`./relational_gui.py -v | grep Relational | cut -d" " -f2`.orig.tar.gz
|
2009-02-24 08:32:00 +07:00
|
|
|
|
2008-09-01 02:52:32 +07:00
|
|
|
clean:
|
2015-09-29 05:45:58 +07:00
|
|
|
rm -rf `find -name "*~"`
|
|
|
|
rm -rf `find -name "*pyc"`
|
|
|
|
rm -rf `find -name "*pyo"`
|
|
|
|
rm -rf relational*.tar.gz
|
|
|
|
rm -rf data
|
|
|
|
rm -rf *tar.bz
|
|
|
|
rm -rf *.deb
|
2015-09-29 06:55:50 +07:00
|
|
|
rm -f relational_gui/survey.py
|
|
|
|
rm -f relational_gui/maingui.py
|
|
|
|
rm -f relational_gui/rel_edit.py
|
|
|
|
rm -f relational_gui/resources.py
|
2008-11-15 09:33:02 +07:00
|
|
|
|
2015-10-03 16:54:23 +07:00
|
|
|
install-relational-cli:
|
|
|
|
python3 setup/relational-cli.setup.py install --root=$${DESTDIR:-/};
|
|
|
|
rm -rf build;
|
|
|
|
install -D relational_gui.py $${DESTDIR:-/}/usr/bin/relational-cli
|
2015-10-09 01:52:42 +07:00
|
|
|
install -D relational-cli.1 $${DESTDIR:-/}/usr/share/man/man1/relational-cli.1
|
2015-10-03 16:54:23 +07:00
|
|
|
|
|
|
|
install-python3-relational:
|
|
|
|
python3 setup/python3-relational.setup.py install --root=$${DESTDIR:-/};
|
|
|
|
rm -rf build;
|
|
|
|
|
|
|
|
install-relational:
|
|
|
|
python3 setup/relational.setup.py install --root=$${DESTDIR:-/};
|
|
|
|
rm -rf build;
|
|
|
|
install -D relational_gui.py $${DESTDIR:-/}/usr/bin/relational
|
|
|
|
install -m0644 -D relational.desktop $${DESTDIR:-/}/usr/share/applications/relational.desktop
|
|
|
|
install -m0644 -D relational_gui/resources/relational.png $${DESTDIR:-/}/usr/share/pixmaps/relational.png
|
2015-10-09 01:52:42 +07:00
|
|
|
install -D relational.1 $${DESTDIR:-/}/usr/share/man/man1/relational.1
|
2015-10-03 16:54:23 +07:00
|
|
|
|
|
|
|
install: install-relational-cli install_module_gui install-relational
|