]> Git Repo - qemu.git/blobdiff - po/Makefile
target/arm: Pass TCGMemOpIdx to sve memory helpers
[qemu.git] / po / Makefile
index 0e345b004e91c61e8e940ad431b0cef2486462a9..e47e262ee668ef728651a323889e8dcdf0e8d8cc 100644 (file)
@@ -4,7 +4,16 @@
 # Set SRC_PATH for in-tree builds without configuration.
 SRC_PATH=..
 
+# The default target must come before any include statements.
+all:
+
+.PHONY:        all build clean install update
+
+%.mo: %.po
+       $(call quiet-command, msgfmt -o $@ $<,"GEN","$@")
+
 -include ../config-host.mak
+include $(SRC_PATH)/rules.mak
 
 PO_PATH=$(SRC_PATH)/po
 
@@ -23,7 +32,7 @@ update: $(SRCS)
 build: $(OBJS)
 
 clean:
-       $(RM) $(OBJS)
+       rm -f $(OBJS)
 
 install: $(OBJS)
        for obj in $(OBJS); do \
@@ -32,13 +41,12 @@ install: $(OBJS)
            $(INSTALL) -m644 $$obj $(DESTDIR)$(prefix)/share/locale/$$base/LC_MESSAGES/qemu.mo; \
        done
 
-%.mo: %.po
-       @msgfmt -o $@ $<
-
 $(PO_PATH)/messages.po: $(SRC_PATH)/ui/gtk.c
-       @xgettext -o $@ --foreign-user --package-name=QEMU --package-version=$(VERSION) [email protected] -k_ -C $<
+       $(call quiet-command, ( cd $(SRC_PATH) && \
+          xgettext -o - --from-code=UTF-8 --foreign-user --no-location \
+           --package-name=QEMU --package-version=$(VERSION) \
+           [email protected] -k_ -C ui/gtk.c | \
+         sed -e s/CHARSET/UTF-8/) >$@,"GEN","$@")
 
 $(PO_PATH)/%.po: $(PO_PATH)/messages.po
-       @msgmerge $@ $< > [email protected] && mv [email protected] $@
-
-.PHONY: clean all
+       $(call quiet-command, msgmerge -q $@ $< > [email protected] && mv [email protected] $@,"GEN","$@")
This page took 0.024857 seconds and 4 git commands to generate.