view extra/symband/doc/Makefile @ 2732:8696f4d4f115 octave-forge

COpy latex2html nav buttons
author adb014
date Fri, 20 Oct 2006 17:56:20 +0000
parents 906fd0ac655b
children a584b7d0a7ab
line wrap: on
line source

sinclude ../../../Makeconf

TEX = $(wildcard *.tex)
PDF = $(patsubst %.tex,%.pdf,$(TEX))

all : $(PDF) html/index.html

%.pdf : %.tex
	latex $< > /dev/null 2>&1
	latex $< > /dev/null 2>&1
	dvipdf $(@:.pdf=.dvi)

# 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
html/index.html : $(TEX)
	latex2html -verbosity=0 -local_icons $<
	if [ -e "html" ]; then \
	  rm -fr html; \
	fi; \
	mv -f $(patsubst %.tex,%,$<) html

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))
	rm -f $(patsubst %.tex,%.toc,$(TEX))
	rm -f $(patsubst %.tex,%.idx,$(TEX))