summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f4c2c0)
raw | patch | inline | side by side (parent: 3f4c2c0)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Mon, 30 Aug 2010 15:25:44 +0000 (15:25 +0000) | ||
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sat, 30 Oct 2010 07:10:05 +0000 (07:10 +0000) |
Change the Makefile code to use a variable for the options that all
the xgettext(1) invocations are using. This makes it more readable,
and makes it easier to add more standard options.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
the xgettext(1) invocations are using. This makes it more readable,
and makes it easier to add more standard options.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index 216b2115531b3845441aa077fffd014396dc9d28..52b713f91f97589e6ece019c309943b4664d1d02 100644 (file)
--- a/Makefile
+++ b/Makefile
$(RM) cscope*
$(FIND) . -name '*.[hcS]' -print | xargs cscope -b
+XGETTEXT_OPTIONS = --add-comments
pot:
- $(XGETTEXT) --add-comments --keyword=_ --keyword=N_ --output=po/git.pot --language=C $(C_OBJ:o=c) t/t0200/test.c
- $(XGETTEXT) --add-comments --join-existing --output=po/git.pot --language=Shell $(SCRIPT_SH) t/t0200/test.sh
- $(XGETTEXT) --add-comments --join-existing --keyword=__ --output=po/git.pot --language=Perl $(SCRIPT_PERL) t/t0200/test.perl
+ $(XGETTEXT) $(XGETTEXT_OPTIONS) --keyword=_ --keyword=N_ --output=po/git.pot --language=C $(C_OBJ:o=c) t/t0200/test.c
+ $(XGETTEXT) $(XGETTEXT_OPTIONS) --join-existing --output=po/git.pot --language=Shell $(SCRIPT_SH) t/t0200/test.sh
+ $(XGETTEXT) $(XGETTEXT_OPTIONS) --join-existing --keyword=__ --output=po/git.pot --language=Perl $(SCRIPT_PERL) t/t0200/test.perl
POFILES := $(wildcard po/*.po)
MOFILES := $(patsubst po/%.po,share/locale/%/LC_MESSAGES/git.mo,$(POFILES))