1999-05-30 00:35:47 +08:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
|
|
tipsdatadir = $(gimpdatadir)/tips
|
|
|
|
|
2002-02-25 05:23:27 +08:00
|
|
|
tips_in_files = gimp-tips.xml.in
|
|
|
|
|
|
|
|
tipsdata_DATA = $(tips_in_files:.xml.in=.xml)
|
|
|
|
|
2002-03-10 02:21:36 +08:00
|
|
|
tips_POFILES = \
|
2003-09-02 23:46:53 +08:00
|
|
|
cs.po \
|
|
|
|
da.po \
|
|
|
|
de.po \
|
2004-02-25 05:12:23 +08:00
|
|
|
en_CA.po \
|
2003-09-02 23:46:53 +08:00
|
|
|
es.po \
|
2003-11-07 03:30:18 +08:00
|
|
|
fr.po \
|
2003-09-02 23:46:53 +08:00
|
|
|
he.po \
|
2004-02-10 03:25:22 +08:00
|
|
|
hr.po \
|
2003-09-02 23:46:53 +08:00
|
|
|
id.po \
|
2003-11-24 11:46:09 +08:00
|
|
|
it.po \
|
2003-09-02 23:46:53 +08:00
|
|
|
ja.po \
|
2004-02-16 20:50:42 +08:00
|
|
|
ms.po \
|
2003-09-02 23:46:53 +08:00
|
|
|
no.po \
|
|
|
|
pl.po \
|
|
|
|
pt.po \
|
|
|
|
pt_BR.po \
|
2004-02-26 22:03:26 +08:00
|
|
|
ru.po \
|
2003-09-02 23:46:53 +08:00
|
|
|
sk.po \
|
|
|
|
sr.po \
|
2003-09-02 23:09:34 +08:00
|
|
|
sr@Latn.po \
|
2003-09-02 23:46:53 +08:00
|
|
|
sv.po \
|
2003-02-10 01:36:57 +08:00
|
|
|
zh_CN.po \
|
|
|
|
zh_TW.po
|
2002-03-10 02:21:36 +08:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
ChangeLog \
|
|
|
|
POTFILES.in \
|
|
|
|
$(GETTEXT_PACKAGE)-tips.pot \
|
|
|
|
$(tips_POFILES) \
|
|
|
|
$(tipsdata_DATA) \
|
|
|
|
$(tips_in_files) \
|
|
|
|
gimp-tips.dtd \
|
|
|
|
update.sh
|
|
|
|
|
2004-03-04 21:50:27 +08:00
|
|
|
MAINTAINERCLEANFILES = $(GETTEXT_PACKAGE)-tips.pot $(tipsdata_DATA)
|
2002-03-10 02:21:36 +08:00
|
|
|
|
|
|
|
|
2002-03-09 00:38:44 +08:00
|
|
|
%.xml: %.xml.in $(srcdir)/$(GETTEXT_PACKAGE)-tips.pot $(wildcard $(srcdir)/*.po)
|
2002-02-25 05:23:27 +08:00
|
|
|
$(INTLTOOL_MERGE) $(srcdir) $< $(@) -x -u -c .intltool-merge-cache
|
|
|
|
|
2002-03-09 00:38:44 +08:00
|
|
|
GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE)-tips --pot
|
|
|
|
|
2002-03-10 02:21:36 +08:00
|
|
|
MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE)-tips --dist
|
|
|
|
|
2004-03-04 21:50:27 +08:00
|
|
|
# POTFILES is created from POTFILES.in by stripping comments, empty lines
|
|
|
|
# and Intltool tags (enclosed in square brackets), and appending a full
|
|
|
|
# relative path to them
|
|
|
|
POTFILES: POTFILES.in
|
|
|
|
( if test 'x$(srcdir)' != 'x.'; then \
|
|
|
|
posrcprefix='$(top_srcdir)/'; \
|
|
|
|
else \
|
|
|
|
posrcprefix="../"; \
|
|
|
|
fi; \
|
|
|
|
rm -f $@-t $@ \
|
|
|
|
&& (sed -e '/^#/d' \
|
|
|
|
-e "s/^\[.*\] +//" \
|
|
|
|
-e '/^[ ]*$$/d' \
|
|
|
|
-e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \
|
|
|
|
| sed -e '$$s/\\$$//') > $@-t \
|
|
|
|
&& chmod a-w $@-t \
|
|
|
|
&& mv $@-t $@ )
|
|
|
|
|
|
|
|
$(srcdir)/$(GETTEXT_PACKAGE)-tips.pot: $(POTFILES)
|
2002-03-09 00:38:44 +08:00
|
|
|
$(GENPOT)
|
|
|
|
|
2002-03-10 02:21:36 +08:00
|
|
|
update-po: $(srcdir)/$(GETTEXT_PACKAGE)-tips.pot
|
|
|
|
PATH=`pwd`/../src:$$PATH; \
|
|
|
|
cd $(srcdir); \
|
|
|
|
pofiles='$(tips_POFILES)'; \
|
|
|
|
for po in $$pofiles; do \
|
|
|
|
lang=`basename $$po .po`; \
|
|
|
|
cp $$lang.po $$lang.old.po; \
|
|
|
|
echo "$$lang:"; \
|
|
|
|
if $(MSGMERGE) $$lang; then \
|
|
|
|
rm -f $$lang.old.po; \
|
|
|
|
else \
|
|
|
|
echo "msgmerge for $$cat failed!"; \
|
|
|
|
rm -f $$lang.po; \
|
|
|
|
mv $$lang.old.po $$lang.po; \
|
|
|
|
fi; \
|
|
|
|
done
|
2002-02-25 05:23:27 +08:00
|
|
|
|
2004-01-15 19:42:32 +08:00
|
|
|
validate: update-po gimp-tips.xml
|
2002-03-09 08:12:08 +08:00
|
|
|
( xmllint=`which xmllint`; \
|
|
|
|
if test x$$xmllint != x && test -x $$xmllint; then \
|
|
|
|
$$xmllint --noout --valid gimp-tips.xml || \
|
|
|
|
( echo "* gimp-tips.xml INVALID *"; exit 1; ) \
|
|
|
|
else \
|
|
|
|
echo "Can't find xmllint to validate gimp-tips.xml; proceed with fingers crossed..."; \
|
|
|
|
fi )
|
2004-01-15 19:42:32 +08:00
|
|
|
|
|
|
|
dist-hook: validate
|