Description: Fix documentation generation
 Modify doc/mwrap.tex to use fancyhdr, create a target in Makefile to build
 mwrap.pdf and to clean it.
Author: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>
Origin: vendor
Forwarded: no
Last-Update: 2012-05-17
--- a/doc/mwrap.tex
+++ b/doc/mwrap.tex
@@ -1,6 +1,6 @@
 \documentclass[12pt]{article}
 \usepackage{amsmath}
-\usepackage{fancyheadings}
+\usepackage{fancyhdr}
 
 \setlength{\oddsidemargin}{0.0in}
 \setlength{\textwidth}{6.5in}
@@ -17,8 +17,8 @@
 
 \pagestyle{fancy}
 
-\headrulewidth 1.5pt
-\footrulewidth 1.5pt
+\renewcommand{\headrulewidth}{1.5pt}
+\renewcommand{\footrulewidth}{1.5pt}
 \chead{\mwrap}
 \lhead{}
 \rhead{}
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
 include make.inc
 
+all: bin mwrap.pdf
+
 bin:
 	(cd src; make)
 
@@ -9,8 +11,12 @@
 demo:
 	(cd example; make)
 
+mwrap.pdf:
+	latexmk -pdf doc/mwrap.tex
+
 clean:
 	rm -f mwrap
+	latexmk -C doc/mwrap.tex
 	(cd src; make clean)
 	(cd example; make clean)
 	(cd testing; make clean)
