## 
## 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.5 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/doclettest/nopack

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

DOCLET = TestDoclet
CLASSPATH := ${CLASSPATH}:..
JDD = javadoc -doclet ${DOCLET} 
MJD = java  org.multijava.mjdoc.Main -doclet ${DOCLET} 

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

default: build-this runtests-this

# Clean up stuff
#

clean-this:     local-clean

local-clean:
	-$(RM) -r `cat .cvsignore`

build-this:

runtests-this:  check

check:
	@for t in  D TestPrivacy TestMods ; do \
	    if [ ! "$(QUIET)" ]; then echo Checking $$t ... ; else printf "."; fi ; \
	    $(MAKE) $$t ;\
	done
	@if [ "$(QUIET)" ]; then echo ""; fi


D: 
	@${JDD} -use -author -private -version D.java > javadoc.ckd
	@${MJD} -use -author -private -version D.java > mjdoc.ckd
	@tail -n +3 javadoc.ckd | diff - mjdoc.ckd

TestPrivacy:
	@for m in "-public" "-protected" "-package" "-private" "" ; do  \
	if [ ! "$(QUIET)" ]; then echo ... FLAG $$m ; else printf "."; fi; \
        ${JDD} -use -author $$m -version TestPrivacy.java > javadoc.ckd; \
        ${MJD} -use -author $$m -version TestPrivacy.java > mjdoc.ckd ; \
	tail -n +3 javadoc.ckd | diff - mjdoc.ckd ; \
	done

TestEmptyTags TestMods Z X:
	@javadoc -doclet org.multijava.mjdoc.testcase.doclettest.TestDoclet -use -author -private -version $@.java > javadoc.ckd
	@java org.multijava.mjdoc.Main -doclet org.multijava.mjdoc.testcase.doclettest.TestDoclet -use -author -private -version $@.java > mjdoc.ckd 
	@tail -n +3 javadoc.ckd | diff - mjdoc.ckd

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

include $(TOPDIR)/Make.ProjDefs

