Makefile.am 1.83 KB
Newer Older
1 2 3 4
## Makefile.am for gimp/menus

menudatadir = $(gimpdatadir)/menus

5 6
menudata_in_files = \
	dockable-menu.xml.in	\
7
	image-menu.xml.in
8 9 10

menudata_built_files = $(menudata_in_files:.xml.in=.xml)

11
menudata_DATA = \
12
	$(menudata_built_files)		\
13
	brush-editor-menu.xml		\
14 15 16
	brushes-menu.xml		\
	buffers-menu.xml		\
	channels-menu.xml		\
17
	colormap-menu.xml		\
18
	cursor-info-menu.xml		\
19
	dashboard-menu.xml		\
20
	documents-menu.xml		\
Michael Natterer's avatar
Michael Natterer committed
21
	dynamics-editor-menu.xml	\
22
	dynamics-menu.xml		\
23 24 25 26 27 28
	error-console-menu.xml		\
	fonts-menu.xml			\
	gradient-editor-menu.xml	\
	gradients-menu.xml		\
	images-menu.xml			\
	layers-menu.xml			\
29
	mypaint-brushes-menu.xml	\
30 31 32
	palette-editor-menu.xml		\
	palettes-menu.xml		\
	patterns-menu.xml		\
33
	tool-preset-editor-menu.xml	\
34
	tool-presets-menu.xml		\
35
	quick-mask-menu.xml		\
36 37
	sample-points-menu.xml		\
	selection-menu.xml		\
38
	templates-menu.xml		\
39
	text-editor-toolbar.xml		\
40
	text-tool-menu.xml		\
41
	tool-options-menu.xml		\
42
	undo-menu.xml			\
43 44
	vectors-menu.xml

45 46
EXTRA_DIST = \
	$(menudata_DATA)		\
47 48
	$(menudata_in_files)		\
	dialogs-menuitems.xml		\
49
	gtkuimanager.dtd		\
50
	menus.xsl
51

52
MAINTAINERCLEANFILES = $(menudata_built_files)
53 54


55
if GIMP_UNSTABLE
56
UNSTABLE_MENU_PARAMS = --stringparam unstable-menus yes
57 58
endif

59 60
SUFFIXES = .xml.in .xml

61
.xml.in.xml:
62
if HAVE_XSLTPROC
63
	$(XSLTPROC) --xinclude $(UNSTABLE_MENU_PARAMS) $(srcdir)/menus.xsl $< > $(@) || rm -f $(@)
64
else
65
	@echo "*** xsltproc is required to build the menus XML files ***"; exit 1;
66
endif
67

68 69 70
# 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
71 72

validate: $(menudata_DATA)
73
if HAVE_XMLLINT
74 75
	@for menu in $^; do \
	   $(XMLLINT) --noout --path $(srcdir) --valid $$menu || \
76
	   ( echo "*** $$menu INVALID ***"; exit 1; ) ; \
77 78
	done
endif
79 80

dist-hook: validate