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) \
|
2004-04-19 22:54:24 +08:00
|
|
|
brushes-menu.xml \
|
|
|
|
buffers-menu.xml \
|
|
|
|
channels-menu.xml \
|
|
|
|
colormap-editor-menu.xml \
|
|
|
|
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 \
|
|
|
|
qmask-menu.xml \
|
2004-05-13 02:36:33 +08:00
|
|
|
selection-editor-menu.xml \
|
2004-04-19 22:54:24 +08:00
|
|
|
templates-menu.xml \
|
2004-04-20 03:36:00 +08:00
|
|
|
tool-options-menu.xml \
|
2004-05-10 08:41:57 +08:00
|
|
|
tools-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 \
|
|
|
|
menus.xsl
|
|
|
|
|
|
|
|
MAINTAINERCLEAN_FILES = $(menudata_built_files)
|
|
|
|
|
|
|
|
|
2004-05-02 18:41:28 +08:00
|
|
|
%.xml: %.xml.in menus.xsl dialogs-menuitems.xml
|
2004-05-02 06:43:15 +08:00
|
|
|
if HAVE_XSLTPROC
|
2004-05-02 18:41:28 +08:00
|
|
|
$(XSLTPROC) --xinclude menus.xsl $< > $(@) || rm -f $(@)
|
2004-05-02 06:43:15 +08:00
|
|
|
else
|
|
|
|
@echo "xsltproc is needed to build the menus XML files"; exit 1;
|
|
|
|
endif
|
2004-04-19 23:35:15 +08:00
|
|
|
|
|
|
|
|
|
|
|
validate: $(menudata_DATA)
|
2004-05-02 01:45:33 +08:00
|
|
|
if HAVE_XMLLINT
|
|
|
|
@for menu in $(menudata_DATA); do \
|
|
|
|
$(XMLLINT) --noout --valid $$menu || \
|
|
|
|
( echo "* $$menu INVALID *"; exit 1; ) ; \
|
|
|
|
done
|
|
|
|
endif
|
2004-04-19 23:35:15 +08:00
|
|
|
|
|
|
|
dist-hook: validate
|