Add Makefile and basic template
This commit is contained in:
parent
4390f953e6
commit
570ca3a2b8
29
Makefile
Normal file
29
Makefile
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
WHOLE=whole
|
||||||
|
LAST=last
|
||||||
|
|
||||||
|
HEADER=header.tex
|
||||||
|
|
||||||
|
all: whole last
|
||||||
|
|
||||||
|
whole: $(WHOLE:=.pdf)
|
||||||
|
|
||||||
|
last: $(LAST:=.pdf)
|
||||||
|
|
||||||
|
#######
|
||||||
|
|
||||||
|
%.pdf: %.tex
|
||||||
|
latexmk -pdf $<
|
||||||
|
|
||||||
|
$(WHOLE).tex: $(HEADER) recettes/*.tex
|
||||||
|
cp $(HEADER) $@
|
||||||
|
for recipe in recettes/*.tex; do echo -e "\t\\input{$$recipe"} >> $@; done
|
||||||
|
echo "\end{document}" >> $@
|
||||||
|
|
||||||
|
$(LAST).tex: $(HEADER) recettes/*.tex
|
||||||
|
cp $(HEADER) $@
|
||||||
|
echo -e "\t\input{$$(ls -1t recettes/*.tex | head -n 1)}" >> $@
|
||||||
|
echo "\end{document}" >> $@
|
||||||
|
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(WHOLE).{tex,pdf} $(LAST).{tex,pdf} *.aux *.fdb_latexmk *.fls *.log
|
23
header.tex
Normal file
23
header.tex
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
% vim: spelllang=fr
|
||||||
|
|
||||||
|
\documentclass[11pt,a4paper]{article}
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
|
\usepackage[francais]{babel}
|
||||||
|
\usepackage[T1]{fontenc}
|
||||||
|
\usepackage{amsmath}
|
||||||
|
\usepackage{amsfonts}
|
||||||
|
\usepackage{amssymb}
|
||||||
|
\usepackage{graphicx}
|
||||||
|
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
|
||||||
|
|
||||||
|
\title{Les recettes de l'Arcoloc ---~version complète}
|
||||||
|
\author{L'Arcoloc}
|
||||||
|
\date{}
|
||||||
|
|
||||||
|
%%%% Commandes classiques du BOcal
|
||||||
|
|
||||||
|
\newcommand{\BOcal}{\textit{BOcal}}
|
||||||
|
\newcommand{\ptm}{·}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
\maketitle
|
Loading…
Reference in a new issue