## Process this file with automake to produce Makefile.in

CURSOR_IMAGES = \
	cursor-bad.png			\
	cursor-color-picker.png		\
	cursor-crosshair.png		\
	cursor-crosshair-small.png	\
	cursor-mouse.png		\
	cursor-none.png			\
	cursor-zoom.png			\
	\
	modifier-anchor.png		\
	modifier-background.png		\
	modifier-control.png		\
	modifier-foreground.png		\
	modifier-intersect.png		\
	modifier-minus.png		\
	modifier-move.png		\
	modifier-pattern.png		\
	modifier-plus.png		\
	modifier-resize.png		\
	\
	tool-airbrush.png		\
	tool-blend.png			\
	tool-blur.png			\
	tool-bucket-fill.png		\
	tool-burn.png			\
	tool-clone.png			\
	tool-color-picker.png		\
	tool-crop.png			\
	tool-dodge.png			\
	tool-ellipse-select.png		\
	tool-eraser.png			\
	tool-flip-horizontal.png	\
	tool-flip-vertical.png		\
	tool-free-select.png		\
	tool-fuzzy-select.png		\
	tool-hand.png			\
	tool-ink.png			\
	tool-iscissors.png		\
	tool-measure.png		\
	tool-move.png			\
	tool-paintbrush.png		\
	tool-paths.png			\
	tool-pencil.png			\
	tool-perspective.png		\
	tool-rect-select.png		\
	tool-resize.png			\
	tool-rotate.png			\
	tool-shear.png			\
	tool-smudge.png			\
	tool-text.png			\
	tool-zoom.png

EXTRA_DIST = \
	$(CURSOR_IMAGES)			\
	gimp-tool-cursors.xcf			\
	\
	makefile.msc			\
	\
	xbm/cursor-none.xbm			\
	xbm/cursor-mouse.xbm			\
	xbm/cursor-mouse-mask.xbm		\
	xbm/cursor-crosshair.xbm		\
	xbm/cursor-crosshair-mask.xbm		\
	xbm/cursor-crosshair-small.xbm		\
	xbm/cursor-crosshair-small-mask.xbm	\
	xbm/cursor-bad.xbm			\
	xbm/cursor-bad-mask.xbm			\
	xbm/cursor-zoom.xbm			\
	xbm/cursor-zoom-mask.xbm		\
	xbm/cursor-color-picker.xbm		\
	xbm/cursor-color-picker-mask.xbm	\
	\
	xbm/modifier-plus.xbm			\
	xbm/modifier-plus-mask.xbm		\
	xbm/modifier-minus.xbm			\
	xbm/modifier-minus-mask.xbm		\
	xbm/modifier-intersect.xbm		\
	xbm/modifier-intersect-mask.xbm		\
	xbm/modifier-move.xbm			\
	xbm/modifier-move-mask.xbm		\
	xbm/modifier-resize.xbm			\
	xbm/modifier-resize-mask.xbm		\
	xbm/modifier-control.xbm		\
	xbm/modifier-control-mask.xbm		\
	xbm/modifier-anchor.xbm			\
	xbm/modifier-anchor-mask.xbm		\
	xbm/modifier-foreground.xbm		\
	xbm/modifier-foreground-mask.xbm	\
	xbm/modifier-background.xbm		\
	xbm/modifier-background-mask.xbm	\
	xbm/modifier-pattern.xbm		\
	xbm/modifier-pattern-mask.xbm		\
	\
	xbm/tool-rect-select.xbm		\
	xbm/tool-rect-select-mask.xbm		\
	xbm/tool-ellipse-select.xbm		\
	xbm/tool-ellipse-select-mask.xbm	\
	xbm/tool-free-select.xbm		\
	xbm/tool-free-select-mask.xbm		\
	xbm/tool-fuzzy-select.xbm		\
	xbm/tool-fuzzy-select-mask.xbm		\
	xbm/tool-paths.xbm			\
	xbm/tool-paths-mask.xbm			\
	xbm/tool-iscissors.xbm			\
	xbm/tool-iscissors-mask.xbm		\
	xbm/tool-move.xbm			\
	xbm/tool-move-mask.xbm			\
	xbm/tool-zoom.xbm			\
	xbm/tool-zoom-mask.xbm			\
	xbm/tool-crop.xbm			\
	xbm/tool-crop-mask.xbm			\
	xbm/tool-resize.xbm			\
	xbm/tool-resize-mask.xbm		\
	xbm/tool-rotate.xbm			\
	xbm/tool-rotate-mask.xbm		\
	xbm/tool-shear.xbm			\
	xbm/tool-shear-mask.xbm			\
	xbm/tool-perspective.xbm		\
	xbm/tool-perspective-mask.xbm		\
	xbm/tool-flip-horizontal.xbm		\
	xbm/tool-flip-horizontal-mask.xbm	\
	xbm/tool-flip-vertical.xbm		\
	xbm/tool-flip-vertical-mask.xbm		\
	xbm/tool-text.xbm			\
	xbm/tool-text-mask.xbm			\
	xbm/tool-color-picker.xbm		\
	xbm/tool-color-picker-mask.xbm		\
	xbm/tool-bucket-fill.xbm		\
	xbm/tool-bucket-fill-mask.xbm		\
	xbm/tool-blend.xbm			\
	xbm/tool-blend-mask.xbm			\
	xbm/tool-pencil.xbm			\
	xbm/tool-pencil-mask.xbm		\
	xbm/tool-paintbrush.xbm			\
	xbm/tool-paintbrush-mask.xbm		\
	xbm/tool-eraser.xbm			\
	xbm/tool-eraser-mask.xbm		\
	xbm/tool-airbrush.xbm			\
	xbm/tool-airbrush-mask.xbm		\
	xbm/tool-clone.xbm			\
	xbm/tool-clone-mask.xbm			\
	xbm/tool-blur.xbm			\
	xbm/tool-blur-mask.xbm			\
	xbm/tool-ink.xbm			\
	xbm/tool-ink-mask.xbm			\
	xbm/tool-dodge.xbm			\
	xbm/tool-dodge-mask.xbm			\
	xbm/tool-burn.xbm			\
	xbm/tool-burn-mask.xbm			\
	xbm/tool-smudge.xbm			\
	xbm/tool-smudge-mask.xbm		\
	xbm/tool-measure.xbm			\
	xbm/tool-measure-mask.xbm		\
	xbm/tool-hand.xbm			\
	xbm/tool-hand-mask.xbm

noinst_DATA = gimp-tool-cursors.h

CLEANFILES = gimp-tool-cursors.h tool-cursors.list

tool-cursors.list: $(CURSOR_IMAGES) Makefile.am
	( rm -f $@; \
	  for image in $(CURSOR_IMAGES); do \
	    echo $$image | \
	      sed -e 's|.*/||' -e 's|-|_|g' -e 's|\.png$$||' >> $@; \
	    echo "  $(srcdir)/$$image" >> $@; \
	  done )

$(srcdir)/gimp-tool-cursors.h: tool-cursors.list
	$(GDK_PIXBUF_CSOURCE) --raw --build-list `cat tool-cursors.list` > $(@F)
