Skip to content
Snippets Groups Projects
Commit 3bffee51 authored by Moul's avatar Moul
Browse files

[fix] Makefile: Fix locales path. Run yoyo from Poetry virtualenv

Remove duplicate slash
Fix cmds names in phony, which seems to be uesd by fish autocompletion
parent bbf11af8
No related branches found
No related tags found
1 merge request!1Add DuniterPy, Makefile fixes
.PHONY: format check mypy pylint isort insert-license gitlab-ci-linter i18n_extract i18n_build database database_rollback database_list pyinstaller .PHONY: format check mypy pylint isort insert-license gitlab-ci-linter i18n_update i18n_build database database_rollback database_list pyinstaller
SHELL := /bin/bash SHELL := /bin/bash
...@@ -29,25 +29,25 @@ gitlab-ci-linter: ...@@ -29,25 +29,25 @@ gitlab-ci-linter:
check: format mypy pylint isort insert-license check: format mypy pylint isort insert-license
i18n_update: i18n_update:
find ./tikka -type f | grep .py$$ | xargs pygettext -v --output-dir=./tikka/locale -d application; find ./tikka -type f | grep .py$$ | xargs pygettext -v --output-dir=./tikka/locales -d application;
msgmerge ./tikka/locale/fr_FR/LC_MESSAGES/application.po tikka//locale/application.pot --update msgmerge ./tikka/locales/fr_FR/LC_MESSAGES/application.po tikka/locales/application.pot --update
msgmerge ./tikka/locale/en_US/LC_MESSAGES/application.po tikka//locale/application.pot --update msgmerge ./tikka/locales/en_US/LC_MESSAGES/application.po tikka/locales/application.pot --update
i18n_build: i18n_build:
msgfmt tikka/locale/fr_FR/LC_MESSAGES/application.po --output-file=tikka/locale/fr_FR/LC_MESSAGES/application.mo msgfmt tikka/locales/fr_FR/LC_MESSAGES/application.po --output-file=tikka/locales/fr_FR/LC_MESSAGES/application.mo
msgfmt tikka/locale/en_US/LC_MESSAGES/application.po --output-file=tikka/locale/en_US/LC_MESSAGES/application.mo msgfmt tikka/locales/en_US/LC_MESSAGES/application.po --output-file=tikka/locales/en_US/LC_MESSAGES/application.mo
database: database:
yoyo apply --batch --no-config-file --database sqlite:///${HOME}/.config/tikka/g1.sqlite3 ./assets/migrations poetry run yoyo apply --batch --no-config-file --database sqlite:///${HOME}/.config/tikka/g1.sqlite3 ./assets/migrations
yoyo apply --batch --no-config-file --database sqlite:///${HOME}/.config/tikka/g1-test.sqlite3 ./assets/migrations poetry run yoyo apply --batch --no-config-file --database sqlite:///${HOME}/.config/tikka/g1-test.sqlite3 ./assets/migrations
database_rollback: database_rollback:
yoyo rollback --batch --no-config-file --database sqlite:///${HOME}/.config/tikka/g1.sqlite3 ./assets/migrations poetry run yoyo rollback --batch --no-config-file --database sqlite:///${HOME}/.config/tikka/g1.sqlite3 ./assets/migrations
yoyo rollback --batch --no-config-file --database sqlite:///${HOME}/.config/tikka/g1-test.sqlite3 ./assets/migrations poetry run yoyo rollback --batch --no-config-file --database sqlite:///${HOME}/.config/tikka/g1-test.sqlite3 ./assets/migrations
database_list: database_list:
yoyo list --no-config-file --database sqlite:///${HOME}/.config/tikka/g1.sqlite3 ./assets/migrations poetry run yoyo list --no-config-file --database sqlite:///${HOME}/.config/tikka/g1.sqlite3 ./assets/migrations
yoyo list --no-config-file --database sqlite:///${HOME}/.config/tikka/g1-test.sqlite3 ./assets/migrations poetry run yoyo list --no-config-file --database sqlite:///${HOME}/.config/tikka/g1-test.sqlite3 ./assets/migrations
pyinstaller: pyinstaller:
pyinstaller dist/tikka.spec pyinstaller dist/tikka.spec
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment