# Copyright (c) 2002- ONGS Inc.
# All rights reserved.
#
# This software may be used, modified, copied, and distributed, in
# both source and binary form provided that the above copyright and
# these terms are retained. Under no circumstances is the author
# responsible for the proper functioning of this software, nor does
# the author assume any responsibility for damages incurred with its
# use.

# author: Daichi GOTO (daichi@ongs.co.jp)
# first edition: Sun Jan 19 15:52:44 JST 2003
# last modified: $Date: 2003/05/22 07:50:28 $
# version: $Revision: 1.1 $


XML		!= ls *.xml

GLSD-DOC2HTML	= glsd-doc2html
GLSD-DOC2TEXT	= glsd-doc2text

HTMLOUT		= ${XML:.xml=.html}
TEXTOUT		= ${XML:.xml=.txt}

SUFFIXES	= .xml .html .txt

.SUFFIXES: ${SUFFIXES}


all: html text

html: ${HTMLOUT}

text: ${TEXTOUT}

.xml.html: 
	"${GLSD-DOC2HTML}" "${<}" "${@}"

.xml.txt: 
	"${GLSD-DOC2TEXT}" "${<}" "${@}"

clean:
	rm ${HTMLOUT}
	rm ${TEXTOUT}

# target alias 
#
txt: text
