po/Makefile: Use macro quiet-command for nice looking messages
Suppress also the "... done" message from msgmerge. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
1fa4492318
commit
0cd8eaa011
@ -5,6 +5,7 @@
|
|||||||
SRC_PATH=..
|
SRC_PATH=..
|
||||||
|
|
||||||
-include ../config-host.mak
|
-include ../config-host.mak
|
||||||
|
include $(SRC_PATH)/rules.mak
|
||||||
|
|
||||||
PO_PATH=$(SRC_PATH)/po
|
PO_PATH=$(SRC_PATH)/po
|
||||||
|
|
||||||
@ -33,16 +34,16 @@ install: $(OBJS)
|
|||||||
done
|
done
|
||||||
|
|
||||||
%.mo: %.po
|
%.mo: %.po
|
||||||
@msgfmt -o $@ $<
|
$(call quiet-command, msgfmt -o $@ $<, " GEN $@")
|
||||||
|
|
||||||
$(PO_PATH)/messages.po: $(SRC_PATH)/ui/gtk.c
|
$(PO_PATH)/messages.po: $(SRC_PATH)/ui/gtk.c
|
||||||
@cd $(SRC_PATH) && \
|
$(call quiet-command, cd $(SRC_PATH) && \
|
||||||
(xgettext -o - --from-code=UTF-8 --foreign-user \
|
(xgettext -o - --from-code=UTF-8 --foreign-user \
|
||||||
--package-name=QEMU --package-version=$(VERSION) \
|
--package-name=QEMU --package-version=$(VERSION) \
|
||||||
--msgid-bugs-address=qemu-devel@nongnu.org -k_ -C ui/gtk.c | \
|
--msgid-bugs-address=qemu-devel@nongnu.org -k_ -C ui/gtk.c | \
|
||||||
sed -e s/CHARSET/UTF-8/) >$@
|
sed -e s/CHARSET/UTF-8/) >$@, " GEN $@")
|
||||||
|
|
||||||
$(PO_PATH)/%.po: $(PO_PATH)/messages.po
|
$(PO_PATH)/%.po: $(PO_PATH)/messages.po
|
||||||
@msgmerge $@ $< > $@.bak && mv $@.bak $@
|
$(call quiet-command, msgmerge -q $@ $< > $@.bak && mv $@.bak $@, " GEN $@")
|
||||||
|
|
||||||
.PHONY: clean all
|
.PHONY: clean all
|
||||||
|
Loading…
Reference in New Issue
Block a user