# @configure_input@

# this Makefile used to be in ../../html and ../../images, so if anything is missing, look there.

include ../../../include/config.Makefile
# we want to ignore the --datarootdir setting, whatever that means, so here we we mention it: @datarootdir@
VPATH = @srcdir@
IMAGES = up.gif next.gif previous.gif top.gif index.gif null.gif recbg.jpg 9planets.gif grayson2005.jpg toc.gif home.gif stillman.jpg
clean::
distclean: clean; rm -f Makefile
all: @pre_docdir@/Core/images
@pre_docdir@/Core/images:; @INSTALL@ -d "$@"
all: $(IMAGES); @INSTALL_DATA@ $^ @pre_docdir@/Core/images
Makefile: Makefile.in; cd ../../..; ./config.status Macaulay2/packages/Images/Makefile

# for gimp to find this *.scm file, put
# (script-fu-path "${gimp_dir}/scripts:${gimp_data_dir}/scripts:/home/geometry/dan/src/M2/Macaulay2/html")
# into ~/.gimp/gimprc

# the .gif files are part of the distribution, so you don't usually need gimp
# that also explains why these make rules operate in the source directory!
# and why setting VPATH would be bad

# The following lines are commented out because gimp fails to execute my commands now.
# Oh well, we have the gif files already.  Here is the error message from gimp:
#   batch command: experienced an execution error.
#   batch command: experienced an execution error.
#   Gtk-CRITICAL **: file gtkmain.c: line 534 (gtk_main_quit): assertion `main_loops != NULL' failed.
# Not very illuminating!  It's impossible to debug gimp code.
# And after all that, it doesn't even give a nonzero return code.

## @srcdir@/up.gif : @srcdir@/Macaulay2-button.scm
## 	cd @srcdir@; gimp -b "(Macaulay2-button \"Up\" \"up.gif\")"  -b '(gimp-quit 0)'
## @srcdir@/next.gif : @srcdir@/Macaulay2-button.scm
## 	cd @srcdir@; gimp -b "(Macaulay2-button \"Next\" \"next.gif\")"  -b '(gimp-quit 0)'
## @srcdir@/previous.gif : @srcdir@/Macaulay2-button.scm
## 	cd @srcdir@; gimp -b "(Macaulay2-button \"Previous\" \"previous.gif\")"  -b '(gimp-quit 0)'
## @srcdir@/index.gif : @srcdir@/Macaulay2-button.scm
## 	cd @srcdir@; gimp -b "(Macaulay2-button \"Index\" \"index.gif\")"  -b '(gimp-quit 0)'
## @srcdir@/top.gif : @srcdir@/Macaulay2-button.scm
## 	cd @srcdir@; gimp -b "(Macaulay2-button \"Top\" \"top.gif\")"  -b '(gimp-quit 0)'
## @srcdir@/null.gif : @srcdir@/Macaulay2-empty-button.scm
## 	cd @srcdir@; gimp -b "(Macaulay2-empty-button \"null.gif\")"  -b '(gimp-quit 0)'

# Local Variables:
# compile-command: "make -C $M2BUILDDIR/Macaulay2/images "
# End:
.NOTPARALLEL:
