# Macaulay2/packages/Style/Makefile.  Generated from Makefile.in by configure.

# 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: ${prefix}/share

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_prefix}/share/doc/Macaulay2/Core/images
${pre_prefix}/share/doc/Macaulay2/Core/images:; /usr/bin/install -c -d "$@"
all: $(IMAGES); ${INSTALL} -m 644 $^ ${pre_prefix}/share/doc/Macaulay2/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.

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

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