gimp/menus/Makefile.am
Michael Natterer 26e11d5fc3 replaced HAVE_GDK_QUARTZ conditional by --disable-toolbox-menu configure
2007-09-18  Michael Natterer  <mitch@gimp.org>

	* configure.in: replaced HAVE_GDK_QUARTZ conditional by
	--disable-toolbox-menu configure switch which defaults to "yes"
	normally and to "no" on quartz.

	* app/widgets/gimptoolbox.c: changed #ifdef accordingly.

	* app/plug-in/Makefile.am
	* app/plug-in/plug-in-menu-path.[ch]: new generic machanism to map
	around menu locations. If ENABLE_TOOLBOX_MENU is false, map
	"Xtns" and "Help" from <Toolbox> to <Image>.

	* app/plug-in/gimppluginmanager-menu-branch.c
	* app/plug-in/gimppluginprocedure.c: run all menu paths through the
	new mapping function.

	* menus/Makefile.am
	* menus/menus.xsl
	* menus/image-menu.xml.in: add both the "Xtns" and "Help" menus to
	the image menubar if TOOLBOX_MENU is false.


svn path=/trunk/; revision=23581
2007-09-18 14:39:52 +00:00

78 lines
1.7 KiB
Makefile

## Makefile.am for gimp/menus
menudatadir = $(gimpdatadir)/menus
menudata_in_files = \
dockable-menu.xml.in \
image-menu.xml.in \
toolbox-menu.xml.in
menudata_built_files = $(menudata_in_files:.xml.in=.xml)
menudata_DATA = \
$(menudata_built_files) \
brush-editor-menu.xml \
brushes-menu.xml \
buffers-menu.xml \
channels-menu.xml \
colormap-menu.xml \
cursor-info-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 \
quick-mask-menu.xml \
sample-points-menu.xml \
selection-menu.xml \
templates-menu.xml \
text-editor-toolbar.xml \
tool-options-menu.xml \
tools-menu.xml \
undo-menu.xml \
vectors-menu.xml
EXTRA_DIST = \
$(menudata_DATA) \
$(menudata_in_files) \
dialogs-menuitems.xml \
gtkuimanager.dtd \
menus.xsl \
makefile.msc
MAINTAINERCLEANFILES = $(menudata_built_files)
if GIMP_UNSTABLE
DEBUG_MENU_PARAMS = --stringparam debug-menu yes
endif
if TOOLBOX_MENU
TOOLBOX_MENU_PARAMS = --stringparam toolbox-menu yes
else
TOOLBOX_MENU_PARAMS = --stringparam toolbox-menu no
endif
%.xml: %.xml.in $(srcdir)/menus.xsl dialogs-menuitems.xml
if HAVE_XSLTPROC
$(XSLTPROC) --xinclude $(DEBUG_MENU_PARAMS) $(TOOLBOX_MENU_PARAMS) $(srcdir)/menus.xsl $< > $(@) || rm -f $(@)
else
@echo "*** xsltproc is required to build the menus XML files ***"; exit 1;
endif
validate: $(menudata_DATA)
if HAVE_XMLLINT
@for menu in $^; do \
$(XMLLINT) --noout --path $(srcdir) --valid $$menu || \
( echo "*** $$menu INVALID ***"; exit 1; ) ; \
done
endif
dist-hook: validate