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 = \
|
2004-06-08 18:42:31 +08:00
|
|
|
ca.po \
|
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 \
|
2004-03-28 19:20:37 +08:00
|
|
|
en_GB.po \
|
2003-09-02 23:46:53 +08:00
|
|
|
es.po \
|
2004-04-07 23:35:07 +08:00
|
|
|
eu.po \
|
2003-11-07 03:30:18 +08:00
|
|
|
fr.po \
|
2003-09-02 23:46:53 +08:00
|
|
|
he.po \
|
2004-05-29 04:32:51 +08:00
|
|
|
hu.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-06-08 18:42:31 +08:00
|
|
|
lt.po \
|
2004-02-16 20:50:42 +08:00
|
|
|
ms.po \
|
2004-11-08 01:28:33 +08:00
|
|
|
nb.po \
|
2004-03-16 00:52:31 +08:00
|
|
|
nl.po \
|
2003-09-02 23:46:53 +08:00
|
|
|
no.po \
|
2004-08-24 07:17:32 +08:00
|
|
|
pa.po \
|
2003-09-02 23:46:53 +08:00
|
|
|
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 \
|
2004-04-16 23:44:18 +08:00
|
|
|
uk.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 \
|
2004-08-27 02:15:10 +08:00
|
|
|
fortunes.xsl \
|
2002-03-10 02:21:36 +08:00
|
|
|
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
|
|
|
|
2004-03-05 07:18:53 +08:00
|
|
|
$(srcdir)/$(GETTEXT_PACKAGE)-tips.pot: $(tips_in_files)
|
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
|
2004-05-02 01:45:33 +08:00
|
|
|
if HAVE_XMLLINT
|
|
|
|
@$(XMLLINT) --noout --valid gimp-tips.xml || \
|
|
|
|
( echo "* gimp-tips.xml INVALID *"; exit 1; )
|
|
|
|
endif
|
2004-01-15 19:42:32 +08:00
|
|
|
|
2004-08-27 02:15:10 +08:00
|
|
|
fortunes: gimp-tips.xml.in fortunes.xsl
|
|
|
|
if HAVE_XSLTPROC
|
|
|
|
$(XSLTPROC) fortunes.xsl $< > $(@) || rm -f $(@)
|
|
|
|
else
|
|
|
|
@echo "xsltproc is needed to build fortunes"; exit 1;
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2004-01-15 19:42:32 +08:00
|
|
|
dist-hook: validate
|