2005-06-11 00:38:36 +08:00
|
|
|
## Makefile.am for gimp/data/tips
|
|
|
|
|
|
|
|
tipsdatadir = $(gimpdatadir)/tips
|
|
|
|
|
|
|
|
tipsdata_in_files = gimp-tips.xml.in
|
|
|
|
|
|
|
|
tipsdata_data_files = $(tipsdata_in_files:.xml.in=.xml)
|
|
|
|
|
|
|
|
tipsdata_DATA = $(tipsdata_data_files)
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2005-07-02 01:22:14 +08:00
|
|
|
$(tipsdata_DATA) \
|
2005-06-11 00:38:36 +08:00
|
|
|
$(tipsdata_in_files) \
|
|
|
|
gimp-tips.dtd \
|
|
|
|
fortunes.xsl
|
|
|
|
|
|
|
|
DISTCLEANFILES = $(tipsdata_data_files)
|
|
|
|
|
|
|
|
|
|
|
|
gimp-tips.xml: gimp-tips.xml.in $(wildcard $(top_srcdir)/po-tips/*.po)
|
2007-09-03 21:20:42 +08:00
|
|
|
$(INTLTOOL_MERGE) $(top_srcdir)/po-tips $< $(@) -x -u -c $(top_builddir)/po-tips/.intltool-merge-cache
|
2005-06-11 00:38:36 +08:00
|
|
|
|
|
|
|
|
|
|
|
validate: gimp-tips.xml
|
|
|
|
if HAVE_XMLLINT
|
2007-06-08 19:11:57 +08:00
|
|
|
@$(XMLLINT) --noout --path $(srcdir) --valid $< || \
|
2005-06-11 00:38:36 +08:00
|
|
|
( echo "* gimp-tips.xml INVALID *"; exit 1; )
|
|
|
|
endif
|
|
|
|
|
2005-06-27 04:34:29 +08:00
|
|
|
fortunes: gimp-tips.xml fortunes.xsl
|
2005-06-11 00:38:36 +08:00
|
|
|
if HAVE_XSLTPROC
|
2005-06-27 04:34:29 +08:00
|
|
|
$(XSLTPROC) --stringparam lang en fortunes.xsl $< > $(@) || rm -f $(@)
|
2005-06-11 00:38:36 +08:00
|
|
|
else
|
|
|
|
@echo "xsltproc is needed to build fortunes"; exit 1;
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
dist-hook: validate
|