## 
## Copyright (C) 2000-2001 Iowa State University
## 
## This file is part of mjc, the MultiJava Compiler.
## 
## based in part on work:
## 
## Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## 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
##
## Author: David R. Cok
## $Id: Makefile,v 1.8 2004/01/14 11:27:24 davidcok Exp $
##

## ----------------------------------------------------------------- 
## At the bottom of this file we import $(TOPDIR)/Make.ProjDefs.  See the
## that file for substantial documentation.
## ----------------------------------------------------------------- 

TOPDIR =	../../../../..

PACKAGE =	org/multijava/mjdoc/testcase/misc

SUBDIRS = 			# !FIXME!make-dirs
TESTDIRS = 			# !FIXME!make-dirs


## ----------------------------------------------------------------------
## GOALS

default:	runtests-this

# Clean up stuff
#
clean-this:     simple-clean local-clean

local-clean:
	-rm -rf out
	-$(RM) `cat .cvsignore`

runtests-this:	runtests-this-start check runtests-this-end

check:	BadTag InnerTag
	@if [ "$(QUIET)" ]; then echo ; fi

BadTag InnerTag:
	@if [ ! "$(QUIET)" ]; then echo Checking $@ ... ; else printf "." ; fi
	@rm -rf out
	@-$(MJDOC) -Xnoversion -xnodate -d out $@.java  2>&1 | $(FIXTILT) > $@.ckd
	-diff $@.ckd $@.expected
	-diff out/$@.html $@.html-expected
	@-$(MJDOC) -Xnoversion -xnodate -d out -quiet $@.java  2>&1 | $(FIXTILT) > $@.quiet-ckd
	-diff $@.quiet-ckd $@.quiet-expected
	-diff out/$@.html $@.html-expected

#@-$(JD) -d out $@.java > $@.ckd 2>&1
#@-diff out/$@.html $@.html-expected


## ----------------------------------------------------------------------
## GLOBAL DEFINITIONS

include $(TOPDIR)/Make.ProjDefs

JDLINKS = -link http://java.sun.com/j2se/1.3/docs/api/
MJARGS += $(JDLINKS) -xnodate
JD = javadoc $(JDLINKS)

