Index: trunk/doc/release.2015/ps1.detrend/Makefile
===================================================================
--- trunk/doc/release.2015/ps1.detrend/Makefile	(revision 39866)
+++ trunk/doc/release.2015/ps1.detrend/Makefile	(revision 40562)
@@ -1,28 +1,14 @@
 # $Id: Makefile,v 1.16 2006-01-16 01:11:40 eugene Exp $
-PDFLATEX = env TEXINPUTS=.:..:inputs:./inputs:LaTeX:$(TEXINPUTS): pdflatex
-BIBTEX   = env BIBINPUTS=.:..:inputs:../inputs BSTINPUTS=.:..:inputs:../inputs bibtex
+
+DO_PDFLATEX = 1
+DO_BIBTEX = 1
 
 help:
 	@echo "USAGE: make (target)"
-	@echo "  targets:  all detrend"
+	@echo "  targets:  all tgz pdf"
 
-all: detrend.pdf
-
-DETREND = detrend.tex
-
-#       pics/Metadata.ps 
-#       pics/earthrot.ps
-
-detrend.pdf: $(DETREND)
-	rm -f detrend.aux detrend.bbl detrend.blg
-	$(PDFLATEX) $<
-	$(BIBTEX) detrend
-	$(PDFLATEX) $<
-	$(PDFLATEX) $<
-	$(PDFLATEX) $<
-
-#detrend.ps: $(DETREND)
-
-include ../Makefile.Common
+all: pdf tgz
+tgz: detrend.tgz
+pdf: detrend.pdf
 
 FILES = \
@@ -63,4 +49,6 @@
 images/stack_3775944_expwt.jpg
 
-submission : 
-	tar --transform 's%inputs/%%' -zcf waters2017.tgz $(FILES)
+include ../Makefile.Common
+
+# submission : 
+# 	tar --transform 's%inputs/%%' -zcf waters2017.tgz $(FILES)
