Index: trunk/doc/release.2015/Makefile.Common
===================================================================
--- trunk/doc/release.2015/Makefile.Common	(revision 39866)
+++ trunk/doc/release.2015/Makefile.Common	(revision 39868)
@@ -7,14 +7,23 @@
 PS2PDF_OPTS = "-dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode"
 
+ifeq ($(DO_PDFLATEX),1)
+     MY_LATEX  = $(PDFLATEX)
+else
+     MY_LATEX  = $(PSLATEX)
+endif
+
 %.pdf: %.tex
-	$(PSLATEX) $*.tex 
-	$(BIBTEX) $*
-	$(PSLATEX) $*.tex 
-#	thumbpdf --modes=dvips $*.pdf
-#	$(PSLATEX) $*.tex 
-	dvips -z -t letter -o $*.ps $*.dvi
-	ps2pdf $(PS2PSF_OPT) $*.ps $*.pdf
+	$(MY_LATEX) $*.tex 
+	if [ $(DO_BIBTEX) -eq 1 ]; then $(BIBTEX) $*; fi
+	$(MY_LATEX) $*.tex 
+	if [ $(DO_BIBTEX) -eq 1  ]; then $(MY_LATEX) $*.tex; fi
+	thumbpdf --modes=dvips $*.pdf
+	$(MY_LATEX) $*.tex 
+	if [ $(DO_PDFLATEX) -eq 0 ]; then dvips -z -t letter -o $*.ps $*.dvi; fi
+	if [ $(DO_PDFLATEX) -eq 0 ]; then ps2pdf $(PS2PDF_OPTS) $*.ps $*.pdf; fi
 #	@rm -f $*.ps $*.dvi $*.aux $*.log $*.tbr $*.tbd $*.toc $*.tpm $*.lof body.tmp head.tmp
 
+%.tgz:
+	tar --transform 's%inputs/%%' -zcf $@ $(FILES)
 clean :
 	$(RM) *.bib *.log *.dvi *.aux *.toc *.tbd *.tbr *.tpm *.lof *.out *~ core body.tmp head.tmp
@@ -24,2 +33,8 @@
 
 empty: clean
+
+foo:
+	@echo all: $^
+	@echo 1st: $<
+	@echo file: $@
+	@echo word: $*
