Cleanup previous commit.

This commit is contained in:
nekral-guest 2011-02-13 11:51:39 +00:00
parent 0398323a60
commit 7de49dec7b
2 changed files with 38 additions and 31 deletions

View File

@ -1,4 +1,8 @@
# LINGUAS
LINGUAS = de fr it pl ru sv LINGUAS = de fr it pl ru sv
POFILES = $(srcdir)/de.po $(srcdir)/fr.po $(srcdir)/it.po $(srcdir)/pl.po $(srcdir)/ru.po $(srcdir)/sv.po
UPDATEPOFILES = de.po-update fr.po-update it.po-update pl.po-update ru.po-update sv.po-update # These variables are generated based on the LINGUAS list
DUMMYPOFILES = de.nop fr.nop it.nop pl.nop ru.nop sv.nop POFILES = $(patsubst %,$(srcdir)/%.po,$(LINGUAS))
UPDATEPOFILES = $(patsubst %,%.po-update,$(LINGUAS))
DUMMYPOFILES = $(patsubst %,%.nop,$(LINGUAS))

View File

@ -11,35 +11,33 @@
# Origin: gettext-0.16 # Origin: gettext-0.16
# Modified to handle translations with xml2po by Nicolas François - 2007 # Modified to handle translations with xml2po by Nicolas François - 2007
PACKAGE = shadow PACKAGE = @PACKAGE@
VERSION = 4.1.4.2+svn3283 VERSION = @VERSION@
PACKAGE_BUGREPORT = PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
SHELL = /bin/sh SHELL = /bin/sh
@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
srcdir = . MSGFMT_ = @MSGFMT@
top_srcdir = ../.. MSGFMT_no = @MSGFMT@
MSGFMT_yes = @MSGFMT_015@
MSGFMT_ = /usr/bin/msgfmt
MSGFMT_no = /usr/bin/msgfmt
MSGFMT_yes = /usr/bin/msgfmt
MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
XGETTEXT_ = /usr/bin/xgettext XGETTEXT_ = @XGETTEXT@
XGETTEXT_no = /usr/bin/xgettext XGETTEXT_no = @XGETTEXT@
XGETTEXT_yes = /usr/bin/xgettext XGETTEXT_yes = @XGETTEXT_015@
XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
MSGMERGE = msgmerge --previous MSGMERGE = @MSGMERGE@ --previous
MSGMERGE_UPDATE = /usr/bin/msgmerge --update --previous MSGMERGE_UPDATE = @MSGMERGE@ --update --previous
MSGINIT = msginit MSGINIT = msginit
MSGCONV = msgconv MSGCONV = msgconv
MSGFILTER = msgfilter MSGFILTER = msgfilter
include $(srcdir)/LINGUAS include $(srcdir)/LINGUAS
#DISTFILES.common = Makefile.in remove-potcdate.sin DISTFILES = $(srcdir)/Makevars $(srcdir)/XMLFILES $(srcdir)/LINGUAS $(POFILES)
DISTFILES.common = remove-potcdate.sin
DISTFILES = $(DISTFILES.common) Makevars XMLFILES LINGUAS $(POFILES)
include $(srcdir)/XMLFILES include $(srcdir)/XMLFILES
@ -48,14 +46,13 @@ include $(srcdir)/Makevars
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .po .sed .sin .nop .po-create .po-update .SUFFIXES: .po .sed .sin .nop .po-create .po-update
remove-potcdate.sin: ../../po/remove-potcdate.sin remove-potcdate.sin: $(top_srcdir)/po/remove-potcdate.sin
cp ../../po/remove-potcdate.sin . cp $? $@
.sin.sed: .sin.sed:
sed -e '/^#/d' $< > t-$@ sed -e '/^#/d' $< > t-$@
mv t-$@ $@ mv t-$@ $@
all: all-yes all: all-yes
all-yes: stamp-po all-yes: stamp-po
@ -76,6 +73,7 @@ all-no:
# $(POFILES) has been designed to not touch files that don't need to be # $(POFILES) has been designed to not touch files that don't need to be
# changed. # changed.
stamp-po: $(srcdir)/$(DOMAIN).pot stamp-po: $(srcdir)/$(DOMAIN).pot
echo "TOTO 0"
@test ! -f $(srcdir)/$(DOMAIN).pot || { \ @test ! -f $(srcdir)/$(DOMAIN).pot || { \
echo "touch stamp-po" && \ echo "touch stamp-po" && \
echo timestamp > stamp-poT && \ echo timestamp > stamp-poT && \
@ -152,7 +150,7 @@ check: all
info dvi ps pdf html tags TAGS ctags CTAGS ID: info dvi ps pdf html tags TAGS ctags CTAGS ID:
mostlyclean: mostlyclean:
rm -f remove-potcdate.sed rm -f remove-potcdate.sed remove-potcdate.sin
rm -f stamp-poT rm -f stamp-poT
rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
@ -191,8 +189,6 @@ dist2: stamp-po $(DISTFILES)
cp -p $(srcdir)/$$file $(distdir) || exit 1; \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \
fi; \ fi; \
done done
# avant for precedant
# if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
update-po: Makefile update-po: Makefile
$(MAKE) $(DOMAIN).pot-update $(MAKE) $(DOMAIN).pot-update
@ -232,11 +228,18 @@ update-po: Makefile
$(DUMMYPOFILES): $(DUMMYPOFILES):
#Makefile: Makefile.in Makevars $(top_builddir)/config.status LINGUAS .PRECIOUS: Makefile
# cd $(top_builddir) \ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
# && $(SHELL) ./config.status $(subdir)/$@ @case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
force: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
# Tell versions [3.59,3.63) of GNU make not to export all variables. # Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded. # Otherwise a system limit (for SysV at least) may be exceeded.