1# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2#
3# This file is part of the LibreOffice project.
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0. If a copy of the MPL was not distributed with this
7# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8#
9
10$(eval $(call gb_CustomTarget_CustomTarget,extras/glade))
11
12#
13# Rules
14#
15
16$(call gb_CustomTarget_get_workdir,extras/source/glade)/libreoffice-catalog.xml : \
17        $(SRCDIR)/extras/source/glade/libreoffice-catalog.xml.in \
18        $(SRCDIR)/extras/source/glade/makewidgetgroup.xslt \
19        | $(call gb_ExternalExecutable_get_dependencies,xsltproc)
20	$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),XSL,4)
21	$(call gb_Helper_abbreviate_dirs, \
22	mkdir -p $(dir $@) && \
23	$(call gb_ExternalExecutable_get_command,xsltproc) --nonet \
24		-o $@ $(SRCDIR)/extras/source/glade/makewidgetgroup.xslt $< \
25	)
26
27# vim: set noet sw=4 ts=4:
28