From 1ac596769a0075814ca8b1cc68dd7a3ca83a842f Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 27 Oct 2023 19:03:15 +0200 Subject: [PATCH] add explications --- Makefile | 28 ++++++++++++++++++++-------- report/.gitignore | 5 +++++ report/Makefile | 16 ++++++++++++++++ report/explications.tex | 23 +++++++++++++++++++++++ 4 files changed, 64 insertions(+), 8 deletions(-) create mode 100644 report/.gitignore create mode 100644 report/Makefile create mode 100644 report/explications.tex diff --git a/Makefile b/Makefile index 4c1a8b2..48e7e31 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,14 @@ CXXFLAGS = --std=c++11 RM = rm TAR = tar -cf -SOURCES = $(wildcard src/*.cpp) -OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES))) +SOURCES = $(wildcard src/*.cpp) +OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES))) -EXE = tp5 -EXE_EXT = out +EXE = tp5 +EXE_EXT = out + +PDF_LOCATION = report +PDF_FILE = explications.pdf %.cpp.o: src/%.cpp $(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS) @@ -25,10 +28,19 @@ compilation: $(OBJETS) all: main -clean: +pdf-make: + cd report && \ + $(MAKE) + +pdf-clean: + cd report && \ + $(MAKE) clean + +clean: pdf-clean $(RM) $(OBJETS) $(EXE).$(EXE_EXT) -archive: +archive: pdf-make + cp $(PDF_LOCATION)/$(PDF_FILE) . $(TAR) "$(EXE).tar" $(SOURCES) $(wildcard includes/*.hpp) Makefile \ - binome.txt -# diagramme_uml.* explications.pdf + binome.txt $(PDF_FILE) +# diagramme_uml.* diff --git a/report/.gitignore b/report/.gitignore new file mode 100644 index 0000000..b162c46 --- /dev/null +++ b/report/.gitignore @@ -0,0 +1,5 @@ +* + +!.gitignore +!Makefile +!*.tex diff --git a/report/Makefile b/report/Makefile new file mode 100644 index 0000000..d7ca06a --- /dev/null +++ b/report/Makefile @@ -0,0 +1,16 @@ +NAME = explications + +TEX = $(NAME).tex +SRC = $(TEX) +PDF = $(TEX:.tex=.pdf) + +TEXMK = latexmk -shell-escape -lualatex + +all: $(PDF) + +$(PDF): %.pdf: %.tex + $(TEXMK) $< + +EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc +clean: + rm -rf $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) diff --git a/report/explications.tex b/report/explications.tex new file mode 100644 index 0000000..ac5eaa6 --- /dev/null +++ b/report/explications.tex @@ -0,0 +1,23 @@ +\documentclass{article} + +\usepackage[T1]{fontenc} % encoding +\renewcommand{\familydefault}{\sfdefault} % sans-serif font + +\usepackage[french]{babel} % langages +\frenchsetup{SmallCapsFigTabCaptions=false} + +\usepackage[hidelinks]{hyperref} % clickable links in table of contents + +\title{Explications TP5} +\author{Emma Botti et Anri Kennel\\Langages à objet avancés $\cdot$ Université Paris Cité} +\date{Année universitaire 2023-2024} + +\begin{document} +\maketitle +\tableofcontents +\clearpage + +\section{SECTION} +Hello, world! + +\end{document}