]>
git.proxmox.com Git - qemu.git/blob - po/Makefile
1 # This makefile is very special as it's meant to build as part of the build
2 # process and also within the source tree to update the translation files.
4 # Set SRC_PATH for in-tree builds without configuration.
7 -include ..
/config-host.mak
11 VERSION
=$(shell cat
$(SRC_PATH
)/VERSION
)
12 SRCS
=$(filter-out $(PO_PATH
)/messages.po
,$(wildcard $(PO_PATH
)/*.po
))
13 OBJS
=$(patsubst $(PO_PATH
)/%.po
,%.mo
,$(SRCS
))
18 @echo
"Use 'make update' to update translation files or use 'make build'"
19 @echo
"or 'make install' to build and install the translation files."
29 for obj in
$(OBJS
); do \
30 base
=`basename $$obj .mo`; \
31 $(INSTALL
) -d
$(DESTDIR
)$(prefix)/share
/locale
/$$base/LC_MESSAGES
; \
32 $(INSTALL
) -m644
$$obj $(DESTDIR
)$(prefix)/share
/locale
/$$base/LC_MESSAGES
/qemu.mo
; \
38 $(PO_PATH
)/messages.po
: $(SRC_PATH
)/ui
/gtk.c
39 @xgettext
-o
$@
--foreign-user
--package-name
=QEMU
--package-version
=$(VERSION
) --msgid-bugs-address
=qemu-devel@nongnu.org
-k_
-C
$<
41 $(PO_PATH
)/%.po
: $(PO_PATH
)/messages.po
42 @msgmerge
$@
$< > $@.bak
&& mv
$@.bak
$@