1
## Process this file with automake to produce Makefile.in
3
tipsdatadir = $(gimpdatadir)/tips
5
tips_in_files = gimp-tips.xml.in
7
tipsdata_DATA = $(tips_in_files:.xml.in=.xml)
48
$(GETTEXT_PACKAGE)-tips.pot \
56
MAINTAINERCLEANFILES = $(GETTEXT_PACKAGE)-tips.pot $(tipsdata_DATA)
59
%.xml: %.xml.in $(srcdir)/$(GETTEXT_PACKAGE)-tips.pot $(wildcard $(srcdir)/*.po)
60
$(INTLTOOL_MERGE) $(srcdir) $< $(@) -x -u -c .intltool-merge-cache
62
GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE)-tips --pot
64
MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE)-tips --dist
67
$(srcdir)/$(GETTEXT_PACKAGE)-tips.pot: $(tips_in_files)
70
update-po: $(srcdir)/$(GETTEXT_PACKAGE)-tips.pot
71
PATH=`pwd`/../src:$$PATH; \
73
pofiles='$(tips_POFILES)'; \
74
for po in $$pofiles; do \
75
lang=`basename $$po .po`; \
76
cp $$lang.po $$lang.old.po; \
78
if $(MSGMERGE) $$lang; then \
79
rm -f $$lang.old.po; \
81
echo "msgmerge for $$cat failed!"; \
83
mv $$lang.old.po $$lang.po; \
87
validate: update-po gimp-tips.xml
90
$(XMLLINT) --noout --valid gimp-tips.xml || \
91
( echo "* gimp-tips.xml INVALID *"; exit 1; )
94
fortunes: gimp-tips.xml.in fortunes.xsl
96
$(XSLTPROC) fortunes.xsl $< > $(@) || rm -f $(@)
98
@echo "xsltproc is needed to build fortunes"; exit 1;