makefile, latex document and chore stuff

This commit is contained in:
Mylloon 2023-11-12 16:09:02 +01:00
parent eabd659122
commit 3ea266b726
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
6 changed files with 119 additions and 0 deletions

6
.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
*.o
*.out
*.pdf
*.tar

53
Makefile Normal file
View file

@ -0,0 +1,53 @@
CXX = g++
CXXFLAGS = --std=c++11
RM = rm -r
TAR = tar -cf
CP = cp -r
SRC_DIR = src
INC_DIR = includes
SOURCES = $(wildcard $(SRC_DIR)/*.cpp)
OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES)))
EXE = projet
EXE_EXT = out
PDF_LOCATION = report
PDF_FILE = explications.pdf
ARCHIVE = binome38.tar
ARCHIVE_DIR = Botti-Kennel
%.cpp.o: $(SRC_DIR)/%.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS)
main: CXXFLAGS += -O3
main: compilation
dev: CXXFLAGS += -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -g
dev: CXXFLAGS += -Wold-style-cast -Wsign-conversion
dev: compilation
compilation: $(OBJETS)
$(CXX) -o $(EXE).$(EXE_EXT) $(OBJETS)
all:
main
pdf-make:
cd report && \
$(MAKE)
pdf-clean:
cd report && \
$(MAKE) clean
clean: pdf-clean
-$(RM) $(OBJETS) "$(EXE).$(EXE_EXT)" "$(ARCHIVE)"
archive: pdf-make
@mkdir $(ARCHIVE_DIR)
$(CP) "$(SRC_DIR)/" "$(INC_DIR)/" Makefile README.md "$(PDF_LOCATION)/$(PDF_FILE)" \
$(ARCHIVE_DIR)
$(TAR) "$(ARCHIVE)" $(ARCHIVE_DIR)
$(RM) "$(ARCHIVE_DIR)"

0
README.md Normal file
View file

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

39
report/explications.tex Normal file
View file

@ -0,0 +1,39 @@
\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
\usepackage{graphicx} % images
\newcommand{\emma}{Emma Botti}
\newcommand{\anri}{Anri Kennel}
\title{Projet}
\author{\emma\thanks{\emma : 71701040} et \anri\thanks{\anri : 22302653} \\
Langages à objet avancés $\cdot$ Université Paris Cité}
\date{Année universitaire 2023-2024}
\begin{document}
\maketitle
\tableofcontents
\clearpage
\section{Explications}
TODO
\section{Diagramme UML}
\begin{figure}[h]
\centering
% \includegraphics[width=1.3\textwidth]{assets/diagramme_uml.png}
\caption{Diagramme UML}
\end{figure}
\end{document}