# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#

ROOT    = ..
SHELL   = /bin/sh

#
# Standard conversion of gifs into pngs.
#
.SUFFIXES:
.SUFFIXES:	.gif .png
.gif.png:
	giftopnm < $< | pnmtopng > $@

#
# Gifs and zip file.
#
GIFS	= \
	glkchessb.gif gpl.gif click.gif gameover.gif 		\
	saving.gif loading.gif gamedraw.gif loadfail.gif
GIFZIP	= misc.zip

#
# Associated png files.
#
PNGS	= \
	glkchessb.png gpl.png click.png gameover.png		\
	saving.png loading.png gamedraw.png loadfail.png

#
# Default make target.
#
default:	all

#
# Unpack gifs.
#
$(GIFS):	$(GIFZIP)
	unzip -qquL $(GIFZIP) $@

#
# Build all pngs.
#
all:	$(PNGS)

clean:
	rm -f *.gif *.png *.pnm
