Diff of /doc/Makefile [9b54d5] .. [5a7642]  Maximize  Restore

Switch to side-by-side view

--- a/doc/Makefile
+++ b/doc/Makefile
@@ -2,13 +2,18 @@
 
 TEX = vrml-mini-howto-1.tex
 PDF = $(patsubst %.tex,%.pdf,$(TEX))
+DVIPDF = dvipdf
 
-all : $(PDF) html/index.html
+all : $(PDF)
 
 %.pdf : %.tex
-	latex -interaction=nonstopmode $< > /dev/null 2>&1
-	latex -interaction=nonstopmode $< > /dev/null 2>&1
-	$(DVIPDF) $(@:.pdf=.dvi)
+	if [ `which latex` ] && [ `which $(DVIPDF)` ] ; then \
+		latex -interaction=nonstopmode $< > /dev/null 2>&1 ; \
+		latex -interaction=nonstopmode $< > /dev/null 2>&1 ; \
+		$(DVIPDF) $(@:.pdf=.dvi) ; \
+	else \
+		echo "Lacking programs to build doc. Skipping" ; \
+	fi 
 
 # Note verbosity=0 as well as making latex2html quieter, has the side-effect
 # of not including a url to the raw text, which it'll get wrong
@@ -23,7 +28,9 @@
 
 clean:
 	rm -fr $(patsubst %.tex,%,$(TEX)) html *.log
-	rm -f $(PDF) *~
 	rm -f $(patsubst %.tex,%.aux,$(TEX))
 	rm -f $(patsubst %.tex,%.out,$(TEX))
 	rm -f $(patsubst %.tex,%.dvi,$(TEX))
+
+realclean:	clean
+	rm -f $(PDF) *~

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks