Initial commit

This commit is contained in:
2018-08-27 18:07:43 +02:00
commit accfb19626
9 changed files with 422 additions and 0 deletions

26
Makefile Normal file
View File

@@ -0,0 +1,26 @@
UI_FILES = $(wildcard gui/*.ui)
TS_FILES = $(wildcard i18n/*.ts)
PY_FILES = $(wildcard *.py) $(wildcard gui/*.py)
UI_COMPILED = $(UI_FILES:.ui=.py)
TS_COMPILED = $(TS_FILES:.ts=.qm)
%.py: %.ui
pyuic5 $< > $@
%.qm: %.ts
lrelease $<
all: $(UI_COMPILED) $(TS_COMPILED)
clean:
rm $(UI_COMPILED)
rm $(TS_COMPILED)
run: all
python3 luftdaten-tool.py
i18n-update:
@for f in $(TS_FILES) ; do \
pylupdate5 *.py gui/*.py -ts $$f -verbose; \
done