diff --git a/Makefile b/Makefile index 674fc23..5f4043f 100644 --- a/Makefile +++ b/Makefile @@ -4,15 +4,20 @@ default: all all: .PHONY: all - licences +TEX:= $(wildcard ./*/*.tex) +tex: $(TEX) + pdflatex + + ## Licences ## ## Convert svg licence files to pdf+pdf_tex LICENCES:= $(wildcard ./licences/*.svg) LICENCES_PDF:= $(patsubst %.svg,%.pdf,$(wildcard ./licences/*.svg)) licences: $(LICENCES_PDF) $(LICENCES_PDF): $(LICENCES) + echo $(TEX) inkscape -D $^ -o $@ --export-latex diff --git a/template_cours.cls b/template_cours.cls index c0f10da..c1e92d2 100755 --- a/template_cours.cls +++ b/template_cours.cls @@ -96,7 +96,7 @@ breaklinks=true, % --- Register some information about the document % --- -\newcommand{\thelicence}{\def\svgwidth{.1\columnwidth}\input{cc-by-sa.pdf_tex}} +\newcommand{\thelicence}{\def\svgwidth{.1\columnwidth}\input{../licences/cc-by-sa.pdf_tex}} \newcommand{\thelevel}{SNT} \newcommand{\thesequence}{Séquence 0}