# makefile for .home.cd.moltmans.drg.code.src

default: all

HOME_MAKE_DIR = ${DRG_DIR}/scripts
include ${HOME_MAKE_DIR}/make.defaults

JAVA_PACKAGE = .
JAVA_PACKAGE_DIRECTORY = .

# Fill this in with the subdirectories that you would like made
# when you do a make in this directory
# SUBDIRS = dir1 dir2 dir3
SUBDIRS = edu
DOCDIRS = edu

CLASSDIR = $(WRITE_CLASS_FILES_TO)/$(JAVA_PACKAGE_DIRECTORY)

-include .dependencies

include $(HOME_MAKE_DIR)/make.rules

# Make the documentation tree from all possible packages.
MEMSIZE = 64

doctree:
        # make sure directory exists and is empty
	mkdir -p $(DRG_JAVA_DOC_DIR)
	rm -fr $(DRG_JAVA_DOC_DIR)/*
	@echo "Creating full documentation tree...please wait..."
        # Most of the options are in the javadoc-options file in 
        # the scripts directory.
	javadoc -J-mx$(MEMSIZE)m -J-ms$(MEMSIZE)m \
	  -d $(DRG_JAVA_DOC_DIR) \
	  -overview $(DRG_DIR)/doc/overview.html \
	  -sourcepath $(DRG_DIR)/code/src \
	  @$(HOME_MAKE_DIR)/javadoc-options

