Eliminate POTFILES.*.in files
The `find` is so cheap that there is little point in the POTFILES.*.in indirection.
This commit is contained in:
parent
88fe99361b
commit
07017f79d8
1 changed files with 4 additions and 12 deletions
16
Makefile
16
Makefile
|
|
@ -21,25 +21,17 @@ all: $(WEBPACK_TEST)
|
||||||
|
|
||||||
LINGUAS=$(basename $(notdir $(wildcard po/*.po)))
|
LINGUAS=$(basename $(notdir $(wildcard po/*.po)))
|
||||||
|
|
||||||
po/POTFILES.js.in:
|
po/$(PACKAGE_NAME).js.pot:
|
||||||
mkdir -p $(dir $@)
|
|
||||||
find src/ -name '*.js' -o -name '*.jsx' > $@
|
|
||||||
|
|
||||||
po/$(PACKAGE_NAME).js.pot: po/POTFILES.js.in
|
|
||||||
xgettext --default-domain=cockpit --output=$@ --language=C --keyword= \
|
xgettext --default-domain=cockpit --output=$@ --language=C --keyword= \
|
||||||
--keyword=_:1,1t --keyword=_:1c,2,1t --keyword=C_:1c,2 \
|
--keyword=_:1,1t --keyword=_:1c,2,1t --keyword=C_:1c,2 \
|
||||||
--keyword=N_ --keyword=NC_:1c,2 \
|
--keyword=N_ --keyword=NC_:1c,2 \
|
||||||
--keyword=gettext:1,1t --keyword=gettext:1c,2,2t \
|
--keyword=gettext:1,1t --keyword=gettext:1c,2,2t \
|
||||||
--keyword=ngettext:1,2,3t --keyword=ngettext:1c,2,3,4t \
|
--keyword=ngettext:1,2,3t --keyword=ngettext:1c,2,3,4t \
|
||||||
--keyword=gettextCatalog.getString:1,3c --keyword=gettextCatalog.getPlural:2,3,4c \
|
--keyword=gettextCatalog.getString:1,3c --keyword=gettextCatalog.getPlural:2,3,4c \
|
||||||
--from-code=UTF-8 --files-from=$^
|
--from-code=UTF-8 $$(find src/ -name '*.js' -o -name '*.jsx')
|
||||||
|
|
||||||
po/POTFILES.html.in:
|
po/$(PACKAGE_NAME).html.pot: $(NODE_MODULES_TEST)
|
||||||
mkdir -p $(dir $@)
|
po/html2po -o $@ $$(find src -name '*.html')
|
||||||
find src -name '*.html' > $@
|
|
||||||
|
|
||||||
po/$(PACKAGE_NAME).html.pot: po/POTFILES.html.in $(NODE_MODULES_TEST)
|
|
||||||
po/html2po -f $^ -o $@
|
|
||||||
|
|
||||||
po/$(PACKAGE_NAME).manifest.pot: $(NODE_MODULES_TEST)
|
po/$(PACKAGE_NAME).manifest.pot: $(NODE_MODULES_TEST)
|
||||||
po/manifest2po src/manifest.json -o $@
|
po/manifest2po src/manifest.json -o $@
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue