File: makefile

package info (click to toggle)
mnemosyne 2.7.3%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,804 kB
  • sloc: python: 34,077; ansic: 837; xml: 625; makefile: 249; sh: 63
file content (51 lines) | stat: -rwxr-xr-x 1,614 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
PYTHON      := python
# If `python3` exists:
ifeq (1,$(shell python3 -c "print(1)" 2>&- ))
PYTHON      := python3
endif

LANGS = ../mo/cs/LC_MESSAGES/mnemosyne.mo \
	../mo/da/LC_MESSAGES/mnemosyne.mo \
	../mo/de/LC_MESSAGES/mnemosyne.mo \
	../mo/eo/LC_MESSAGES/mnemosyne.mo \
	../mo/es/LC_MESSAGES/mnemosyne.mo \
	../mo/fa/LC_MESSAGES/mnemosyne.mo \
	../mo/fr/LC_MESSAGES/mnemosyne.mo \
	../mo/he/LC_MESSAGES/mnemosyne.mo \
	../mo/hr/LC_MESSAGES/mnemosyne.mo \
	../mo/hu/LC_MESSAGES/mnemosyne.mo \
	../mo/id/LC_MESSAGES/mnemosyne.mo \
	../mo/it/LC_MESSAGES/mnemosyne.mo \
	../mo/ja/LC_MESSAGES/mnemosyne.mo \
	../mo/nb/LC_MESSAGES/mnemosyne.mo \
	../mo/nl/LC_MESSAGES/mnemosyne.mo \
	../mo/pl/LC_MESSAGES/mnemosyne.mo \
	../mo/pt_BR/LC_MESSAGES/mnemosyne.mo \
	../mo/pt/LC_MESSAGES/mnemosyne.mo \
	../mo/ru/LC_MESSAGES/mnemosyne.mo \
	../mo/tr/LC_MESSAGES/mnemosyne.mo \
	../mo/zh_CN/LC_MESSAGES/mnemosyne.mo \
	../mo/zh_HK/LC_MESSAGES/mnemosyne.mo \
	../mo/zh_TW/LC_MESSAGES/mnemosyne.mo \
	../mo/gl/LC_MESSAGES/mnemosyne.mo \
	../mo/ca/LC_MESSAGES/mnemosyne.mo \
	../mo/ca@valencia/LC_MESSAGES/mnemosyne.mo \
	../mo/uk/LC_MESSAGES/mnemosyne.mo \
	../mo/sv/LC_MESSAGES/mnemosyne.mo \
	../mo/sr/LC_MESSAGES/mnemosyne.mo

# don't copy am and vi (unless updated), en_GB, zh_SH, nb_no, uz, szl

default: $(LANGS)

$(LANGS): ../mo/%/LC_MESSAGES/mnemosyne.mo: %.po
	mkdir -p `dirname $@`
	$(PYTHON) ./msgfmt.py -o $@ $<

clean:
	rm -rf *~
	rm -rf ../mo

update:
	cd ../mnemosyne/pyqt_ui && make
	find .. -name "*.py" | xargs python3 ./pygettext.py -v -o mnemosyne.pot