More build notes

This commit is contained in:
2018-09-02 13:43:37 +02:00
parent e302b796ae
commit 9a426f25bb
3 changed files with 48 additions and 2 deletions

View File

@@ -5,6 +5,12 @@ PY_FILES = $(wildcard *.py) $(wildcard gui/*.py)
UI_COMPILED = $(UI_FILES:.ui=.py)
TS_COMPILED = $(TS_FILES:.ts=.qm)
ifeq (, $(shell which python3))
PY ?= python
else
PY ?= python3
endif
%.py: %.ui
pyuic5 $< > $@
@@ -18,10 +24,13 @@ clean:
rm $(TS_COMPILED)
run: all
python3 luftdaten-tool.py
$(PY) luftdaten-tool.py
dist: all
python3 -m PyInstaller luftdaten-tool.spec
$(PY) -m PyInstaller luftdaten-tool.spec
deps:
$(PY) -m pip install -U -r requirements.txt
i18n-update:
@for f in $(TS_FILES) ; do \