Debian Codegraph @

eyes17/lang/Makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 DESTDIR =
2 TS_FILES = $(wildcard *.ts)
3 QM_FILES = $(patsubst %.ts, %.qm, $(TS_FILES))
4 SOURCES = $(wildcard ../*py ../code/*.py)
5 FORMS = $(wildcard ../layouts/*.ui)
6 # pylupdate6 cannot tale a .pro file
7 PYLUPDATE ?= pylupdate5
8 export LANG=C
9
10 all: $(QM_FILES)
11
12 $(QM_FILES): $(TS_FILES)
13 lrelease -qt5 eyes17.pro > lrelease.log
14 python3 makeStats.py lrelease.log
15
16 $(TS_FILES): eyes17.pro
17 LANG=en_US.UTF-8 $(PYLUPDATE) eyes17.pro
18
19 eyes17.pro: $(SOURCES)
20 @echo "# GENERATED FILE, DO NOT EDIT" > $@
21 @echo "SOURCES = $(SOURCES)" >> $@
22 @echo "FORMS = $(FORMS)" >> $@
23 @echo "TRANSLATIONS = $(TS_FILES)" >> $@
24
25 clean:
26 rm -f *~ $(QM_FILES) eyes17.pro lrelease.log *.svg status.txt
27
28 install: all
29 install -d $(DESTDIR)/usr/share/eyes17/lang
30 install -m 644 $(QM_FILES) status.txt $(DESTDIR)/usr/share/eyes17/lang
31
32 .PHONY: all clean install
33
34