# $Id: Makefile,v 1.10 2001/09/08 22:52:09 cmatsuoka Exp $

XCFLAGS =
OBJS	=
DFILES	= Makefile AUTHORS BUGS Changelog COPYING README.agi README.sdl \
	  README.svgalib README.unix README.win32 README.ports README.macos \
	  README.turboc README.pocketpc README.djgpp TODO sarien.doxygen \
	  roadmap.txt
CFILES	=
DDIRS	=
XDFILES =
LIB	=

all:

include ../Rules

dox:
	[ -d html ] || mkdir html
	doxygen sarien.doxygen

flowchart.ps: flowchart.dot
	dot -Tps -o$@ $+


specs: flowchart.ps
	@if [ -x /usr/bin/docbook2html ]; then		\
		[ -d agispecs ] || mkdir agispecs;	\
		(cd agispecs; docbook2html ../agispecs.sgml) \
	else						\
		sgmltools -b html agispecs.sgml;	\
	fi
	(cd agispecs;					\
	 convert ../flowchart.ps flowchart.png;		\
	 ln -sf book1.html index.html; 			\
	 cp ../images/specs/*png .)

