source: SHVCSoftware/branches/HM-10.0-dev-SHM/doc/Makefile @ 521

Last change on this file since 521 was 51, checked in by suehring, 12 years ago

import HM 10.0 (HEVCSoftware/trunk rev. 3352)

File size: 869 bytes
Line 
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.