2 --directory=$(src-dir) \
4 --default-domain=$(package) \
8 --msgid-bugs-address="http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs" \
9 --package-name=$(package) \
10 --package-version=$(VERSION)
12 sed-header = \# Translation of LilyPond\n\# Copyright \(C\) 1998--2012 Han-Wen Nienhuys, Jan Nieuwenhuizen.\n\# This file is distributed under the same license as the LilyPond package.
13 sed-content = "Content-Type: text\/plain; charset=UTF-8\\n"
18 if test -r $(po-srcdir); then \
19 rm -f $(po-outdir)/$(package).po; \
20 mkdir -p $(po-outdir); \
21 touch $(po-outdir)/$(package).po; \
24 ifeq ($(strip $(depth)),.)
32 ALL_PO_SOURCES = $(ALL_C_SOURCES) $(ALL_CC_SOURCES) $(PYTHON_SCRIPTS_IN) $(PY_MODULES_IN) $(SCM_FILES)
34 ifneq ($(strip $(ALL_PO_SOURCES)),)
35 @echo $(ALL_PO_SOURCES)
36 xgettext $(XGETTEXT_OPTIONS) --output-dir=$(po-outdir) \
37 --keyword=_ --keyword=_f --keyword=_i \
38 $(XGETTEXT_FLAGS) $(ALL_PO_SOURCES)
40 sed -i '1,2d' $(po-outdir)/$(package).po
41 sed -i -e 's/^\# This file is distributed.*/$(sed-header)/' $(po-outdir)/$(package).po
42 sed -i -e 's/^\"Content-Type: text\/plain.*/$(sed-content)/' $(po-outdir)/$(package).po
47 $(MAKE) -C $(po-outdir)/.. po-update
50 $(MAKE) -C $(po-outdir)/.. po-changes
53 $(MAKE) -C $(po-outdir)/.. po-replace