
# Definitions #

HOME = /u/usystem/software/concc
TeXLIB = 

# Directives #

all : uSystem.dvi;

clean :
	rm -f *.aux *.dvi *.idx *.ilg *.ind *.log *.toc *.blg

# File Dependencies #

uSystem.dvi : Makefile Coroutine.tex PV.tex MessagePassing.tex File.tex SocketClient.tex SocketServer.tex \
		uSystem.idx uSystem.bbl uSystem.tex
	TEXINPUTS=.:${HOME}/TeX:${TeXLIB} && export TEXINPUTS && latex uSystem.tex
	makeindex uSystem.idx
	TEXINPUTS=.:${HOME}/TeX:${TeXLIB} && export TEXINPUTS && latex uSystem.tex
	TEXINPUTS=.:${HOME}/TeX:${TeXLIB} && export TEXINPUTS && latex uSystem.tex	% to get index title in toc

uSystem.bbl :
	TEXINPUTS=.:${HOME}/TeX:${TeXLIB} && export TEXINPUTS && latex uSystem.tex
	TEXINPUTS=.:${HOME}/TeX:${TeXLIB} && export TEXINPUTS && bibtex uSystem

uSystem.idx :
	cp /dev/null uSystem.ind

Coroutine.tex : ../../../examples/Coroutine/ProdCons2.c
	tgrind -i -n $? > $@

PV.tex : ../../../examples/PV/ProdCons.c
	tgrind -i -n $? > $@

MessagePassing.tex : ../../../examples/MessagePassing/ProdCons.c
	tgrind -i -n $? > $@

File.tex : ../../../examples/IO/File.c
	tgrind -i -n $? > $@

SocketClient.tex : ../../../examples/IO/ClientUNIX.c
	tgrind -i -n $? > $@

SocketServer.tex : ../../../examples/IO/ServerUNIX.c
	tgrind -i -n $? > $@

# Local Variables: #
# compile-command: "make -k" #
# End: #
