2020-06-02 13:02:00 +07:00
|
|
|
.PHONY: gui
|
2020-06-02 13:03:59 +07:00
|
|
|
gui: relational_gui/survey.py relational_gui/maingui.py relational_gui/rel_edit.py relational_gui/resources.py
|
2015-02-19 06:59:41 +07:00
|
|
|
|
2020-06-02 13:03:59 +07:00
|
|
|
relational_gui/survey.py:
|
2015-02-19 06:59:41 +07:00
|
|
|
pyuic5 relational_gui/survey.ui > relational_gui/survey.py
|
2020-06-02 13:03:59 +07:00
|
|
|
|
|
|
|
relational_gui/maingui.py:
|
2015-02-19 06:59:41 +07:00
|
|
|
pyuic5 relational_gui/maingui.ui > relational_gui/maingui.py
|
2016-05-25 05:08:59 +07:00
|
|
|
sed -i 's/QtWidgets.QPlainTextEdit/editor.Editor/g' relational_gui/maingui.py
|
|
|
|
echo 'from . import editor' >> relational_gui/maingui.py
|
2011-10-08 12:33:08 +07:00
|
|
|
|
2020-06-02 13:03:59 +07:00
|
|
|
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
|
|
|
|
|
2020-06-02 12:04:53 +07:00
|
|
|
.PHONY: mypy
|
|
|
|
mypy:
|
2020-08-15 14:19:59 +07:00
|
|
|
mypy relational relational_readline
|
2020-06-02 13:03:59 +07:00
|
|
|
|
2020-06-02 13:02:00 +07:00
|
|
|
.PHONY: test
|
2017-06-24 04:35:57 +07:00
|
|
|
test:
|
|
|
|
./driver.py
|
|
|
|
|
2020-08-12 12:36:14 +07:00
|
|
|
deb-pkg: dist
|
|
|
|
mv relational_*.orig.tar.gz* /tmp
|
|
|
|
cd /tmp; tar -xf relational_*.orig.tar.gz
|
|
|
|
cp -r debian /tmp/relational/
|
|
|
|
cd /tmp/relational/; dpkg-buildpackage --changes-option=-S
|
|
|
|
mkdir deb-pkg
|
2020-08-24 03:40:01 +07:00
|
|
|
mv /tmp/relational* /tmp/python3-relational_*.deb deb-pkg
|
2020-08-12 12:36:14 +07:00
|
|
|
$(RM) -r /tmp/relational
|
|
|
|
|
2020-06-02 13:02:00 +07:00
|
|
|
.PHONY: dist
|
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
|
|
|
|
2020-08-24 03:26:41 +07:00
|
|
|
#mv /tmp/relational /tmp/relational-`./relational.py -v | grep Relational | cut -d" " -f2`
|
2011-03-04 06:18:22 +07:00
|
|
|
#(cd /tmp; tar -zcf relational.tar.gz relational-*/)
|
|
|
|
(cd /tmp; tar -zcf relational.tar.gz relational/)
|
2020-08-24 03:26:41 +07:00
|
|
|
mv /tmp/relational.tar.gz ./relational_`./relational.py -v | grep Relational | cut -d" " -f2`.orig.tar.gz
|
|
|
|
gpg --sign --armor --detach-sign ./relational_`./relational.py -v | grep Relational | cut -d" " -f2`.orig.tar.gz
|
2016-03-31 13:25:09 +07:00
|
|
|
|
2020-06-02 13:02:00 +07:00
|
|
|
.PHONY: clean
|
2008-09-01 02:52:32 +07:00
|
|
|
clean:
|
2020-08-24 03:29:28 +07:00
|
|
|
$(RM) -r deb-pkg
|
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
|
2016-03-31 13:25:09 +07:00
|
|
|
rm -rf relational*.tar.gz.asc
|
2015-09-29 05:45:58 +07:00
|
|
|
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
|
|
|
|
2020-06-02 13:02:00 +07:00
|
|
|
.PHONY: install-relational-cli
|
2015-10-03 16:54:23 +07:00
|
|
|
install-relational-cli:
|
|
|
|
python3 setup/relational-cli.setup.py install --root=$${DESTDIR:-/};
|
|
|
|
rm -rf build;
|
2020-08-24 03:26:41 +07:00
|
|
|
install -D relational.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
|
|
|
|
2020-06-02 13:02:00 +07:00
|
|
|
.PHONY: install-python3-relational
|
2015-10-03 16:54:23 +07:00
|
|
|
install-python3-relational:
|
|
|
|
python3 setup/python3-relational.setup.py install --root=$${DESTDIR:-/};
|
|
|
|
rm -rf build;
|
|
|
|
|
2020-06-02 13:02:00 +07:00
|
|
|
.PHONY: install-relational
|
2015-10-03 16:54:23 +07:00
|
|
|
install-relational:
|
|
|
|
python3 setup/relational.setup.py install --root=$${DESTDIR:-/};
|
|
|
|
rm -rf build;
|
2020-08-24 03:26:41 +07:00
|
|
|
install -D relational.py $${DESTDIR:-/}/usr/bin/relational
|
2015-10-03 16:54:23 +07:00
|
|
|
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
|
|
|
|
2020-06-02 13:02:00 +07:00
|
|
|
.PHONY: install
|
2016-04-27 13:23:16 +07:00
|
|
|
install: install-relational-cli install-python3-relational install-relational
|