gimp/tips/Makefile.am

102 lines
2.4 KiB
Makefile
Raw Normal View History

configure.in removed tips files, AC_SUBST GIMP_PLUGINS and GIMP_MODULES so * configure.in * Makefile.am: removed tips files, AC_SUBST GIMP_PLUGINS and GIMP_MODULES so you can easily skip those parts of the build * acinclude.m4 * config.sub * config.guess * ltconfig * ltmain.sh: libtool 1.3.2 * app/fileops.c: shuffle #includes to avoid warning about MIN and MAX [ The following is a big i18n patch from David Monniaux <david.monniaux@ens.fr> ] * tips/gimp_conseils.fr.txt * tips/gimp_tips.txt * tips/Makefile.am * configure.in: moved tips to separate dir * po-plugins: new dir for plug-in translation files * configure.in: add po-plugins dir and POTFILES processing * app/boundary.c * app/brightness_contrast.c * app/by_color_select.c * app/color_balance.c * app/convert.c * app/curves.c * app/free_select.c * app/gdisplay.c * app/gimpimage.c * app/gimpunit.c * app/gradient.c * app/gradient_select.c * app/install.c * app/session.c: various i18n tweaks * app/tips_dialog.c: localize tips filename * libgimp/gimpunit.c * libgimp/gimpunitmenu.c: #include "config.h" * plug-ins/CEL * plug-ins/CML_explorer * plug-ins/Lighting * plug-ins/apply_lens * plug-ins/autostretch_hsv * plug-ins/blur * plug-ins/bmp * plug-ins/borderaverage * plug-ins/bumpmap * plug-ins/bz2 * plug-ins/checkerboard * plug-ins/colorify * plug-ins/compose * plug-ins/convmatrix * plug-ins/cubism * plug-ins/depthmerge * plug-ins/destripe * plug-ins/gif * plug-ins/gifload * plug-ins/jpeg * plug-ins/mail * plug-ins/oilify * plug-ins/png * plug-ins/print * plug-ins/ps * plug-ins/xbm * plug-ins/xpm * plug-ins/xwd: plug-in i18n stuff -Yosh
1999-05-30 00:35:47 +08:00
## Process this file with automake to produce Makefile.in
tipsdatadir = $(gimpdatadir)/tips
tips_in_files = gimp-tips.xml.in
tipsdata_DATA = $(tips_in_files:.xml.in=.xml)
tips_POFILES = \
cs.po \
da.po \
de.po \
en_CA.po \
es.po \
2003-11-07 03:30:18 +08:00
fr.po \
he.po \
hr.po \
id.po \
2003-11-24 11:46:09 +08:00
it.po \
ja.po \
ms.po \
no.po \
pl.po \
pt.po \
pt_BR.po \
ru.po \
sk.po \
sr.po \
sr@Latn.po \
sv.po \
zh_CN.po \
zh_TW.po
EXTRA_DIST = \
ChangeLog \
POTFILES.in \
$(GETTEXT_PACKAGE)-tips.pot \
$(tips_POFILES) \
$(tipsdata_DATA) \
$(tips_in_files) \
gimp-tips.dtd \
update.sh
MAINTAINERCLEANFILES = $(GETTEXT_PACKAGE)-tips.pot $(tipsdata_DATA)
2002-03-09 00:38:44 +08:00
%.xml: %.xml.in $(srcdir)/$(GETTEXT_PACKAGE)-tips.pot $(wildcard $(srcdir)/*.po)
$(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
MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE)-tips --dist
# 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)
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
validate: update-po gimp-tips.xml
( 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 )
dist-hook: validate