# Note that we do not install in the detected GLADE_CATALOG_DIR
# since we may not have permissions to do it, for instance if
# compiling with a prefix while glade is installed in /usr.
# We use the variable only to find the dtd file.
# If you install gtksourceview and glade in different prefixes
# and want to use the catalog in glade, you will need to set
# the GLADE_CATALOG_SEARCH_PATH environment variable.
catalogdir = $(datadir)/glade/catalogs
catalog_DATA = gtksourceview.xml

validate: $(catalog_DATA)
	xmllint --dtdvalid $(GLADE_CATALOG_DIR)/glade-catalog.dtd --noout $<

EXTRA_DIST =			\
	gtksourceview.xml	\
	glade.its		\
	glade.pot

$(srcdir)/glade.pot: $(catalog_DATA) glade.its
	$(ITSTOOL) -i glade.its -o $@ $(catalog_DATA)

-include $(top_srcdir)/git.mk
