Index: trunk/doc/modules/Makefile
===================================================================
--- trunk/doc/modules/Makefile	(revision 2029)
+++ trunk/doc/modules/Makefile	(revision 2241)
@@ -1,23 +1,19 @@
-# $Id: Makefile,v 1.2 2004-10-08 23:29:04 price Exp $
+# $Id: Makefile,v 1.3 2004-10-29 22:00:51 eugene Exp $
 
-PDFLATEX = pdflatex
+PDFLATEX = env TEXINPUTS=../../latex/inputs:$(TEXINPUTS):.: pdflatex
+PSLATEX  = env TEXINPUTS=../../latex/inputs:$(TEXINPUTS):.: latex
 
 all : ModulesSDRS.pdf
 
-%.pdf : %.tex
-	@find . -name $*.aux -cnewer $*.tex -exec rm {} \;
-	@if [ ! -f $*.aux ]; then \
-		echo $(PDFLATEX) $*.tex; \
-		env TEXINPUTS=.:LaTeX:$(TEXINPUTS): $(PDFLATEX) $*.tex; \
-	fi && env TEXINPUTS=.:LaTeX:$(TEXINPUTS): $(PDFLATEX) $*.tex || $(RM) $*.pdf
+%.pdf: %.tex
+	$(PSLATEX) $*.tex 
+	$(PSLATEX) $*.tex 
+	dvips -z -t letter -o $*.ps $*.dvi
+	ps2pdf $*.ps $*.pdf
+	@rm -f $*.ps $*.dvi $*.aux $*.log $*.tbr $*.tbd $*.lof $*.toc
 
 clean :
-	$(RM) *.log *.dvi *.aux *.toc *.lof *.out *~ core
+	$(RM) *.log *.dvi *.aux *.toc *.tbd *.tbr *.lof *.out *~ core
 
 empty : clean
-	@for f in `find . -maxdepth 1 -name \*.pdf`; do \
-	    if [ -f `echo $$f | sed 's/pdf/tex/'` ]; then \
-		echo $(RM) $$f; \
-		$(RM) $$f; \
-	    fi; \
-	done
+
