Make gettext output its stuff into builddir, instead of srcdir.

I have no clue why GNU decided that it wants to generate GMO files
 inside srcdir...

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6849 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2009-03-14 23:32:31 +00:00
parent 852b81ea8b
commit 529d9f6574
2 changed files with 7 additions and 4 deletions

View File

@ -22,6 +22,9 @@ srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
builddir = @builddir@
top_builddir = @top_builddir@
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
@ -87,9 +90,9 @@ CATALOGS = @CATALOGS@
.po.gmo:
@lang=`echo $* | sed -e 's,.*/,,'`; \
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \
cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
test "$(builddir)" = . && cdcmd="" || cdcmd="cd $(builddir) && "; \
echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $(srcdir)/$${lang}.po"; \
cd $(builddir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $(srcdir)/$${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
.sin.sed:
sed -e '/^#/d' $< > t-$@

View File

@ -5,7 +5,7 @@ DOMAIN = $(PACKAGE)
# These two variables depend on the location of this directory.
subdir = po
top_builddir = ..
#top_builddir = ..
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --from-code=UTF-8 --no-wrap --width=1 --keyword=_ --keyword=N_ --keyword=P_:1c,2 --keyword=NP_:1c,2