2004-04-19 22:54:24 +08:00
|
|
|
## Makefile.am for gimp/menus
|
|
|
|
|
|
|
|
menudatadir = $(gimpdatadir)/menus
|
|
|
|
|
2004-05-02 18:41:28 +08:00
|
|
|
menudata_in_files = \
|
|
|
|
dockable-menu.xml.in \
|
2008-03-22 01:55:32 +08:00
|
|
|
image-menu.xml.in
|
2004-05-02 06:43:15 +08:00
|
|
|
|
|
|
|
menudata_built_files = $(menudata_in_files:.xml.in=.xml)
|
|
|
|
|
2004-04-19 22:54:24 +08:00
|
|
|
menudata_DATA = \
|
2004-05-02 06:43:15 +08:00
|
|
|
$(menudata_built_files) \
|
2005-10-26 05:38:00 +08:00
|
|
|
brush-editor-menu.xml \
|
2004-04-19 22:54:24 +08:00
|
|
|
brushes-menu.xml \
|
|
|
|
buffers-menu.xml \
|
|
|
|
channels-menu.xml \
|
2006-11-18 06:07:07 +08:00
|
|
|
colormap-menu.xml \
|
2005-07-09 06:54:46 +08:00
|
|
|
cursor-info-menu.xml \
|
2004-04-19 22:54:24 +08:00
|
|
|
documents-menu.xml \
|
2009-10-03 19:55:29 +08:00
|
|
|
dynamics-editor-menu.xml \
|
2009-10-11 22:00:35 +08:00
|
|
|
dynamics-menu.xml \
|
2004-04-19 22:54:24 +08:00
|
|
|
error-console-menu.xml \
|
|
|
|
fonts-menu.xml \
|
|
|
|
gradient-editor-menu.xml \
|
|
|
|
gradients-menu.xml \
|
|
|
|
images-menu.xml \
|
|
|
|
layers-menu.xml \
|
2015-12-21 06:48:40 +08:00
|
|
|
mypaint-brushes-menu.xml \
|
2004-04-19 22:54:24 +08:00
|
|
|
palette-editor-menu.xml \
|
|
|
|
palettes-menu.xml \
|
|
|
|
patterns-menu.xml \
|
2010-04-11 19:40:28 +08:00
|
|
|
tool-preset-editor-menu.xml \
|
2011-10-10 03:55:58 +08:00
|
|
|
tool-presets-menu.xml \
|
2005-09-19 20:44:06 +08:00
|
|
|
quick-mask-menu.xml \
|
2006-11-18 06:07:07 +08:00
|
|
|
sample-points-menu.xml \
|
|
|
|
selection-menu.xml \
|
2004-04-19 22:54:24 +08:00
|
|
|
templates-menu.xml \
|
2004-11-04 22:24:32 +08:00
|
|
|
text-editor-toolbar.xml \
|
2008-10-27 01:39:55 +08:00
|
|
|
text-tool-menu.xml \
|
2004-04-20 03:36:00 +08:00
|
|
|
tool-options-menu.xml \
|
2006-11-18 06:07:07 +08:00
|
|
|
undo-menu.xml \
|
2004-04-19 22:54:24 +08:00
|
|
|
vectors-menu.xml
|
|
|
|
|
2004-04-19 23:35:15 +08:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(menudata_DATA) \
|
2004-05-02 18:41:28 +08:00
|
|
|
$(menudata_in_files) \
|
|
|
|
dialogs-menuitems.xml \
|
2004-05-02 06:43:15 +08:00
|
|
|
gtkuimanager.dtd \
|
2011-12-16 22:53:56 +08:00
|
|
|
menus.xsl
|
2004-05-02 06:43:15 +08:00
|
|
|
|
2007-08-20 22:34:13 +08:00
|
|
|
MAINTAINERCLEANFILES = $(menudata_built_files)
|
2004-05-02 06:43:15 +08:00
|
|
|
|
|
|
|
|
2005-06-27 07:47:13 +08:00
|
|
|
if GIMP_UNSTABLE
|
2011-05-27 02:44:55 +08:00
|
|
|
UNSTABLE_MENU_PARAMS = --stringparam unstable-menus yes
|
2007-08-30 23:00:50 +08:00
|
|
|
endif
|
|
|
|
|
2010-08-28 12:08:15 +08:00
|
|
|
SUFFIXES = .xml.in .xml
|
|
|
|
|
2012-04-01 19:42:07 +08:00
|
|
|
.xml.in.xml:
|
2004-05-02 06:43:15 +08:00
|
|
|
if HAVE_XSLTPROC
|
2011-05-27 02:44:55 +08:00
|
|
|
$(XSLTPROC) --xinclude $(UNSTABLE_MENU_PARAMS) $(srcdir)/menus.xsl $< > $(@) || rm -f $(@)
|
2004-05-02 06:43:15 +08:00
|
|
|
else
|
2007-06-07 16:40:36 +08:00
|
|
|
@echo "*** xsltproc is required to build the menus XML files ***"; exit 1;
|
2004-05-02 06:43:15 +08:00
|
|
|
endif
|
2004-04-19 23:35:15 +08:00
|
|
|
|
2012-04-01 19:42:07 +08:00
|
|
|
# Specifying dependencies in the implicit rule above does not work, so
|
|
|
|
# specify them here instead
|
|
|
|
dockable-menu.xml image-menu.xml: $(top_srcdir)/configure.ac $(srcdir)/menus.xsl dialogs-menuitems.xml
|
2004-04-19 23:35:15 +08:00
|
|
|
|
|
|
|
validate: $(menudata_DATA)
|
2004-05-02 01:45:33 +08:00
|
|
|
if HAVE_XMLLINT
|
2007-06-08 19:11:57 +08:00
|
|
|
@for menu in $^; do \
|
|
|
|
$(XMLLINT) --noout --path $(srcdir) --valid $$menu || \
|
2007-05-06 21:12:25 +08:00
|
|
|
( echo "*** $$menu INVALID ***"; exit 1; ) ; \
|
2004-05-02 01:45:33 +08:00
|
|
|
done
|
|
|
|
endif
|
2004-04-19 23:35:15 +08:00
|
|
|
|
|
|
|
dist-hook: validate
|