Stop chained builds of .po and .json files
The way we work with these translation files means that we only care about one step at a time, we don't want to update the .po files when building the 'update-js' target. Also, always force rebuilds of the .po and .json files.
This commit is contained in:
parent
a85c85fb5f
commit
264a6d82ea
|
@ -1,5 +1,6 @@
|
||||||
all:
|
all:
|
||||||
.PHONY: update-po update-js update-pot
|
.PHONY: update-po update-js update-pot
|
||||||
|
.PHONY: FORCE
|
||||||
|
|
||||||
LINGUAS := cs de el es fr ja ko nl pl pt_BR ru sv tr zh_CN zh_TW
|
LINGUAS := cs de el es fr ja ko nl pl pt_BR ru sv tr zh_CN zh_TW
|
||||||
|
|
||||||
|
@ -11,10 +12,10 @@ JSONFILES := $(addprefix ../app/locale/,$(addsuffix .json,$(LINGUAS)))
|
||||||
update-po: $(POFILES)
|
update-po: $(POFILES)
|
||||||
update-js: $(JSONFILES)
|
update-js: $(JSONFILES)
|
||||||
|
|
||||||
%.po: noVNC.pot
|
%.po: FORCE
|
||||||
msgmerge --update --lang=$* $@ $<
|
msgmerge --update --lang=$* $@ noVNC.pot
|
||||||
../app/locale/%.json: %.po
|
../app/locale/%.json: FORCE
|
||||||
./po2js $< $@
|
./po2js $*.po $@
|
||||||
|
|
||||||
update-pot:
|
update-pot:
|
||||||
xgettext --output=noVNC.js.pot \
|
xgettext --output=noVNC.js.pot \
|
||||||
|
|
Loading…
Reference in New Issue