diff --git a/doc/dev_infrastructure/Makefile b/doc/dev_infrastructure/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..afe101a2023f4093e1e8bc421fbba446c4915df9 --- /dev/null +++ b/doc/dev_infrastructure/Makefile @@ -0,0 +1,86 @@ +# Tools +LATEXFLAGS ?= -interaction=nonstopmode -file-line-error +PDFLATEX = pdflatex $(LATEXFLAGS) +BIBTEX = bibtex +FIG2DEV = fig2dev +RUBBER ?= $(shell which rubber 2> /dev/null) +RUBBERFLAGS = --pdf --short --warn refs --warn misc + +# Files and directories +FIGDIR = figures +FIGS = $(wildcard $(FIGDIR)/*.fig) +FIGPDFS = $(patsubst $(FIGDIR)/%.fig,$(FIGDIR)/%.pdf,$(FIGURES)) +FIGPDFTS = $(patsubst $(FIGDIR)/%.fig,$(FIGDIR)/%.pdf_t,$(FIGURES)) +FIGURES = $(filter-out $(FIGS) $(FIGPDFS) $(FIGPDFTS), $(wildcard $(FIGDIR)/*)) + +JOB = lettreBenjaminRanft +TEXS = $(wildcard *.tex) $(wildcard *.sty) $(wildcard *.cls) +PICS = $(wildcard *.png) $(filter-out $(JOB).pdf,$(wildcard *.pdf)) +BIBS = $(wildcard *.bib) $(wildcard *.bst) + +TOPS = $(shell grep -l '[^%]*\\begin{document}' *.tex) +PDFTARGETS = $(patsubst %.tex,%.pdf,$(TOPS)) +TARGETS = $(patsubst %.tex,%,$(TOPS)) + +.DEFAULT: help +.PHONY: all help clean ultraclean + +help: + @echo '----------------------------------------------------------------'; \ + echo 'available targets:'; \ + echo ' "make" or "make help": print this help'; \ + echo ' "make foo" or "make foo.pdf": build the foo.pdf document'; \ + echo ' "make all": build all documents'; \ + echo ' "make clean": delete non-essential generated files'; \ + echo ' "make ultraclean": delete all generated files'; \ + echo '----------------------------------------------------------------'; \ + echo 'Buildable documents:'; \ + echo -n $(sort $(TARGETS)) | sed -e 's/\([^ ]\+\) */ \1\n/g'; \ + echo '----------------------------------------------------------------'; \ + echo 'if you encounter problems please contact:'; \ + echo ' Renaud Pacalet <renaud.pacalet@telecom-paristech.fr>'; \ + echo '----------------------------------------------------------------' + +all: $(PDFTARGETS) +$(TARGETS): % : %.pdf + +ifeq ($(RUBBER),) + +# Bootstrap aux file, then keep running pdflatex until it reaches a fixpoint + +$(JOB).aux: | $(TEXS) $(PICS) + $(PDFLATEX) $(JOB) + +$(JOB).bbl: $(JOB).aux $(BIBS) + $(BIBTEX) $(JOB) + +$(JOB).pdf: $(TEXS) $(PICS) $(JOB).aux $(JOB).bbl + @cp -p $(JOB).aux $(JOB).aux.bak + $(PDFLATEX) $(JOB) + @if cmp -s $(JOB).aux $(JOB).aux.bak; \ + then touch -r $(JOB).aux.bak $(JOB).aux; \ + else NEWS="$$NEWS -W $(JOB).aux"; fi; rm $(JOB).aux.bak; \ + if [ -n "$$NEWS" ]; then $(MAKE) $$NEWS $@; fi + +$(FIGDIR)/%.pdf: $(FIGDIR)/%.fig + $(FIG2DEV) -L pdftex $< $@ + +$(FIGDIR)/%.pdf_t: $(FIGDIR)/%.fig $(FIGDIR)/%.pdf + $(FIG2DEV) -L pdftex_t -p $(patsubst %.pdf_t,%.pdf,$@) $< $@ + +clean: + rm -f $(JOB).aux $(JOB).log $(JOB).blg $(JOB).bbl $(JOB).out $(JOB).pdf + +else + +.NOTPARALLEL: + +.PHONY: $(PDFTARGETS) + +$(PDFTARGETS): %.pdf: %.tex + @$(RUBBER) $(RUBBERFLAGS) $< + +clean: + @$(RUBBER) $(RUBBERFLAGS) --clean $(TOPS) + +endif diff --git a/doc/dev_infrastructure/ttool_development_infrastructure.pdf b/doc/dev_infrastructure/ttool_development_infrastructure.pdf deleted file mode 100644 index 81b2a9e231e239bcfb75e72a1f9ab13c2f96703a..0000000000000000000000000000000000000000 Binary files a/doc/dev_infrastructure/ttool_development_infrastructure.pdf and /dev/null differ diff --git a/doc/dev_infrastructure/ttool_development_infrastructure.tex b/doc/dev_infrastructure/ttool_development_infrastructure.tex index d5f7675cedc35e2e602b0e38f987097fd22dd19c..6d3bcfc3ff1376fa9eb0d8842a8418180a340470 100644 --- a/doc/dev_infrastructure/ttool_development_infrastructure.tex +++ b/doc/dev_infrastructure/ttool_development_infrastructure.tex @@ -40,12 +40,12 @@ \hhline{----} & \textbf{Document Manager} & \textbf{Contributors} & \textbf{Checked by} \\ \hhline{----} -\textbf{Name} & Dominique BLOUIN & \multirow{2}{*}{Ludovic APVRIL} & -\multirow{2}{*}{Ludovic APVRIL} \\ +\textbf{Name} & Dominique BLOUIN & \multirow{2}{*}{Ludovic APVRILLE} & +\multirow{2}{*}{Ludovic APVRILLE} \\ \hhline{--~~} \textbf{Contact} & dominique.blouin@telecom-paristech.fr & & \\ \hhline{--~~} -\textbf{Date} & 10/02/2017 & & \\ +\textbf{Date} & \today & & \\ \hline \end{tabular} \end{adjustbox}