diff doc/emacs/Makefile.in @ 110911:6d7021474f2e

Add ps rules for some doc/ Makefiles. * doc/misc/Makefile.in (.texi.dvi): Remove unnecessary suffix rule. * dos/lispref/Makefile.in (DVIPS): New variable. (.PHONY): Add ps. (ps, elisp.ps): New targets. (clean): Delete ps file. * doc/lispintro/Makefile.in (.dvi.ps): Remove unnecessary suffix rule. (.PHONY): Add ps. (ps, emacs-lisp-intro.ps): New targets. (clean): Delete ps file. * doc/emacs/Makefile.in (.texi.dvi): Remove unnecessary suffix rule. (DVIPS): New variable. (.PHONY): Add ps. (ps, emacs.ps, emacs-xtra.ps): New targets. (clean): Delete ps files.
author Glenn Morris <rgm@gnu.org>
date Sun, 10 Oct 2010 17:30:34 -0700
parents 39eed86814a2
children 2bfb6bf8a383
line wrap: on
line diff
--- a/doc/emacs/Makefile.in	Sun Oct 10 16:13:58 2010 -0700
+++ b/doc/emacs/Makefile.in	Sun Oct 10 17:30:34 2010 -0700
@@ -43,11 +43,8 @@
 
 TEXI2DVI = texi2dvi
 TEXI2PDF = texi2pdf
+DVIPS = dvips
 
-# The following rule does not work with all versions of `make'.
-.SUFFIXES: .texi .dvi
-.texi.dvi:
-	$(TEXI2DVI) $<
 
 ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)"
 
@@ -118,11 +115,12 @@
 ## solution anyway.  The second test -d is for parallel builds.
 mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
 
-.PHONY: info dvi pdf
+.PHONY: info dvi pdf ps
 
 info: $(infodir)/emacs
 dvi: emacs.dvi
 pdf: emacs.pdf
+ps: emacs.ps
 
 # Note that all the Info targets build the Info files in srcdir.
 # There is no provision for Info files to exist in the build directory.
@@ -135,6 +133,9 @@
 emacs.dvi: ${EMACSSOURCES}
 	$(ENVADD) $(TEXI2DVI) $<
 
+emacs.ps: emacs.dvi
+	$(DVIPS) -o $@ $<
+
 emacs.pdf: ${EMACSSOURCES}
 	$(ENVADD) $(TEXI2PDF) $<
 
@@ -142,6 +143,9 @@
 emacs-xtra.dvi: $(EMACS_XTRA)
 	$(ENVADD) $(TEXI2DVI) $<
 
+emacs-xtra.ps: emacs-xtra.dvi
+	$(DVIPS) -o $@ $<
+
 emacs-xtra.pdf: $(EMACS_XTRA)
 	$(ENVADD) $(TEXI2PDF) $<
 
@@ -154,7 +158,8 @@
 
 ## Products not in the release tarfiles.
 clean: mostlyclean
-	rm -f emacs.dvi emacs-xtra.dvi emacs.pdf emacs-xtra.pdf
+	rm -f emacs.dvi emacs-xtra.dvi emacs.pdf emacs-xtra.pdf \
+	  emacs.ps emacs-xtra.ps
 	rm -f emacs-manual-${version}.tar*
 
 distclean: clean