## Define the appropriate configuration variables.
 
PACKAGE = /fsys2/u/usystem/software/u++-4.7

## Include the architecture dependent definitions.

.INCLUDE : ${PACKAGE}/CONFIG

## Define the path names of important directories.

SRCDIR = ${PACKAGE}/doc/license

## Define some of the tools.

.INCLUDE : ../../src/MakeTools

## Define some of the commands.

TeXLIB = .:../TeXmacros:
Latex  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex
Bibtex = TEXINPUTS=${TeXLIB} && export TEXINPUTS && bibtex

## Define the source for the documents.

SOURCE = ${SRCDIR}/{\
research \
educational \
}.tex

## Define the documents that need to be made.

DOCUMENTS = ${SRCDIR}/{${SOURCE:b}}.ps

# Directives #

all : ${DOCUMENTS};

clean :
	rm -f *.aux *.dvi *.idx *.ilg *.ind *.log *.toc *.blg {${SOURCE:b}}.ps

install : ${INSTALLDOCDIR} ${DOCUMENTS}
[
	for file in ${DOCUMENTS:f} ; do
		if cmp -s $$file ${INSTALLDOCDIR}/$$file ; then . ; else ${INSTALL} $$file ${INSTALLDOCDIR}/$$file ; fi
	done
]

# File Dependencies #

${INSTALLDOCDIR} :
	mkdir $@

%.ps	: %.dvi
	dvips $< -o $@

%.dvi	: %.tex
	${Latex} $<

## Local Variables: ##
## compile-command: "dmake" ##
## End: ##
