source: 3DVCSoftware/trunk/doc/Makefile @ 913

Last change on this file since 913 was 608, checked in by tech, 11 years ago

Merged DEV-2.0-dev0@604.

File size: 905 bytes
RevLine 
[608]1SHELL=/bin/bash
2
3DOCNUM:=software-manual
4
5LATEX:=$(shell which xelatex || which pdflatex || which latex)
6BIBTOOL:=$(shell which bibtool || echo \\\# skipping bibtool )
7BIBTOOL_DB=~/mpeg/doc/bib/jctvc.bib
8
9all: $(DOCNUM).pdf
10
11%.aux: %.tex
12        $(LATEX) $(LATEXFLAGS) $<
13
14%.bib: %.tex %.aux
15        $(BIBTOOL) -q -s -d -r <(echo check.double.delete = ON) -i $(BIBTOOL_DB) -x $(*F).aux -o $@
16        touch $@
17
18%.bbl: %.tex %.aux %.bib
19        -bibtex $(*F)
20
21ifneq ($(LATEX),latex)
22%.pdf: %.tex %.bbl
23        $(LATEX) $(LATEXFLAGS) $<
24        $(LATEX) $(LATEXFLAGS) $<
25endif
26
27%.pdf: %.dvi
28        dvipdfm $*.dvi
29
30%.dvi: %.tex %.bbl
31        $(LATEX) $(LATEXFLAGS) $<
32        $(LATEX) $(LATEXFLAGS) $<
33
34$(DOCNUM)-diff_%.pdf: LATEXFLAGS=--interaction=batchmode
35$(DOCNUM)-diff_%.tex:
36        -latexdiff-vc --exclude-safecmd=textbf --append-context1cmd=subfloat --append-context2cmd=multicolumn --encoding=utf8 --force --git -r $* $(DOCNUM).tex
Note: See TracBrowser for help on using the repository browser.