summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 18 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4c31f17e..770fd585 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ VERSION:=$(subst /,-,$(TRAVIS_BRANCH))
OS:=$(TRAVIS_OS_NAME)
ARCH:=$(shell uname -m)
-dist: distclean locales
+dist: distclean locales inx
bin/build-dist $(EXTENSIONS)
cp inx/*.inx dist
cp -a images/examples dist/inkstitch
@@ -23,11 +23,22 @@ dist: distclean locales
distclean:
rm -rf build dist *.spec *.tar.gz
+.PHONY: inx
+inx: locales
+ mkdir -p inx
+ if [ "$$BUILD" = "windows" ]; then \
+ wine c:\\Python\\python.exe bin/generate-inx-files; \
+ else \
+ bin/generate-inx-files; \
+ fi
+
+.PHONY: messages.po
messages.po:
rm -f messages.po
- pybabel extract -o messages.po -F babel.conf --add-location=full --add-comments=l10n,L10n,L10N --sort-by-file --strip-comments .
+ bin/pyembroidery-gettext > pyembroidery-format-descriptions.py
+ pybabel extract -o messages.po -F babel.conf --add-location=full --add-comments=l10n,L10n,L10N --sort-by-file --strip-comments -k N_ .
+ rm pyembroidery-format-descriptions.py
-.PHONY: messages.po
.PHONY: locales
locales:
# message files will look like this:
@@ -42,3 +53,7 @@ locales:
else \
mkdir -p locales; \
fi
+
+.PHONY: style
+style:
+ flake8 . --count --max-complexity=10 --max-line-length=150 --statistics --exclude=pyembroidery,__init__.py,simulator.py,params.py