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 \
|
|
|
|
image-menu.xml.in \
|
|
|
|
toolbox-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 \
|
|
|
|
error-console-menu.xml \
|
|
|
|
fonts-menu.xml \
|
|
|
|
gradient-editor-menu.xml \
|
|
|
|
gradients-menu.xml \
|
|
|
|
images-menu.xml \
|
|
|
|
layers-menu.xml \
|
|
|
|
palette-editor-menu.xml \
|
|
|
|
palettes-menu.xml \
|
|
|
|
patterns-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 \
|
2004-04-20 03:36:00 +08:00
|
|
|
tool-options-menu.xml \
|
2004-05-10 08:41:57 +08:00
|
|
|
tools-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 \
|
2005-04-24 23:39:15 +08:00
|
|
|
menus.xsl \
|
|
|
|
makefile.msc
|
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
|
2007-08-30 23:00:50 +08:00
|
|
|
DEBUG_MENU_PARAMS = --stringparam debug-menu yes
|
|
|
|
endif
|
|
|
|
|
2007-09-18 22:39:52 +08:00
|
|
|
if TOOLBOX_MENU
|
|
|
|
TOOLBOX_MENU_PARAMS = --stringparam toolbox-menu yes
|
|
|
|
else
|
|
|
|
TOOLBOX_MENU_PARAMS = --stringparam toolbox-menu no
|
2005-06-27 07:47:13 +08:00
|
|
|
endif
|
|
|
|
|
2007-06-07 16:40:36 +08:00
|
|
|
%.xml: %.xml.in $(srcdir)/menus.xsl dialogs-menuitems.xml
|
2004-05-02 06:43:15 +08:00
|
|
|
if HAVE_XSLTPROC
|
2007-09-18 22:39:52 +08:00
|
|
|
$(XSLTPROC) --xinclude $(DEBUG_MENU_PARAMS) $(TOOLBOX_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
|
|
|
|
|
|
|
|
|
|
|
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
|