add explications

This commit is contained in:
Mylloon 2023-10-27 19:03:15 +02:00
parent 4564e76aa3
commit 1ac596769a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
4 changed files with 64 additions and 8 deletions

View file

@ -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.*

5
report/.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
*
!.gitignore
!Makefile
!*.tex

16
report/Makefile Normal file
View file

@ -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))

23
report/explications.tex Normal file
View file

@ -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}