Modify Makefile for macOS
This commit is contained in:
parent
3383a5eb90
commit
cf65462979
6
Makefile
6
Makefile
@ -8,11 +8,11 @@ relational_gui/maingui.py relational_gui/survey.py relational_gui/rel_edit.py:
|
||||
# Create .py file
|
||||
pyuic5 $(basename $@).ui > $@
|
||||
# Use my custom editor class
|
||||
sed -i 's/QtWidgets.QPlainTextEdit/editor.Editor/g' $@
|
||||
sed 's/QtWidgets.QPlainTextEdit/editor.Editor/g' $@
|
||||
echo 'from . import editor' >> $@
|
||||
# Use gettext instead of Qt translations
|
||||
echo 'from gettext import gettext as _' >> $@
|
||||
sed -i \
|
||||
sed \
|
||||
-e 's/_translate("MainWindow", /_(/g' \
|
||||
-e 's/_translate("Dialog", /_(/g' \
|
||||
-e 's/_translate("Form", /_(/g' \
|
||||
@ -86,7 +86,7 @@ install-python3-relational: install_translations
|
||||
install-relational:
|
||||
python3 setup/relational.setup.py install --root=$${DESTDIR:-/};
|
||||
rm -rf build;
|
||||
install -D relational.py $${DESTDIR:-/}/usr/bin/relational
|
||||
installD relational.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
|
||||
install -D relational.1 $${DESTDIR:-/}/usr/share/man/man1/relational.1
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: relational\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-10-25 18:55+0100\n"
|
||||
"POT-Creation-Date: 2023-02-16 09:31-0600\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
Loading…
Reference in New Issue
Block a user