# 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 files

include $(HOME_MAKE_DIR)/make.rules

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

webdocs:
	@ if [ -d $(DRG_WWW_DIR)/api ]; then echo -n; \
	  else mkdir $(DRG_WWW_DIR)/api; \
	       echo "Making doc directory"; \
	fi
	@echo "Creating full documentation tree...please wait..."
	javadoc -J-mx$(MEMSIZE)m -J-ms$(MEMSIZE)m \
	  -d $(DRG_WWW_DIR)/api \
	  -link http://java.sun.com/products/jdk/1.3/docs/api \
	 `find $(DOCDIRS) -name \*.java -print | sed -e 's|/[^/]*$$||g' | sort | uniq | sed -e 's|/|.|g'`	


doctree:
	@ if [ -d $(DRG_JAVA_DOC_DIR) ]; then echo -n; \
	  else mkdir $(DRG_JAVA_DOC_DIR); \
	       echo "Making doc directory"; \
	fi
	@echo "Creating full documentation tree...please wait..."
	javadoc -J-mx$(MEMSIZE)m -J-ms$(MEMSIZE)m \
	  -d $(DRG_JAVA_DOC_DIR) \
	  -overview $(DRG_DIR)/doc/index.html \
	  -version -author -use \
	  -link file:///jdk/docs/jdk1.3.1/docs/api \
	  -link http://java.sun.com/products/jdk/1.3/docs/api \
	 `find $(DOCDIRS) -name \*.java -print | sed -e 's|/[^/]*$$||g' | sort | uniq | sed -e 's|/|.|g'`	



