Commits

Anonymous committed 96c7f3b

Doc build fixes <n0nrtshm.fsf@xemacs.org>

Comments (0)

Files changed (3)

 2002-11-29  Ben Wing  <ben@xemacs.org>
 
 	* .cvsignore: Remove files now handled automatically by CVS.
+	* Makefile (DATA_3_FILES): Only build .ps/.pdf if we have working
+	texi2dvi, texi2pdf.
+	* doc/Makefile (.texi.dvi):
+	* doc/Makefile (dvi):
+	Only build .ps/.pdf if we have working texi2dvi, texi2pdf.
 
 2002-10-15  Ville Skyttä  <scop@xemacs.org>
 
 DATA_2_FILES = java/$(JAR)
 DATA_2_DEST = $(PACKAGE)/java
 
-DATA_3_FILES = doc/$(PACKAGE).info doc/$(PACKAGE).pdf doc/$(PACKAGE).ps \
-	doc/$(PACKAGE).texi doc/$(PACKAGE).gif
+DATA_3_FILES = doc/$(PACKAGE).info doc/$(PACKAGE).texi doc/$(PACKAGE).gif
+ifneq ($(TEXI2DVI),)
+ifneq ($(DVIPS),)
+DATA_3_FILES += doc/$(PACKAGE).ps
+endif
+endif
+ifneq ($(TEXI2PDF),)
+DATA_3_FILES += doc/$(PACKAGE).pdf
+endif
 DATA_3_DEST = $(PACKAGE)/doc
 
 AUTOLOAD_PATH = lisp
 	mv ../README.tmp ../README
 
 .texi.dvi:
-	texi2dvi $<
-	texi2dvi $<
-	dvips -o xslt-process.ps $@
-	texi2pdf $<
+ifneq ($(TEXI2DVI),)
+ifneq ($(DVIPS),)
+	$(TEXI2DVI) $<
+	$(TEXI2DVI) $<
+	$(DVIPS) -o xslt-process.ps $@
+endif
+endif
+ifneq ($(TEXI2PDF),)
+	$(TEXI2PDF) $<
+endif
+	-
 
 all:: info dvi