From 7f44df915a93349d14fbc0e0814157fe74fd8c5c Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 22 Feb 2023 11:50:06 +0100 Subject: [PATCH] Add makefile for archives --- .gitignore | 3 +++ TP1/Makefile | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 TP1/Makefile diff --git a/.gitignore b/.gitignore index 29bcf70..495e16a 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ Cours/ # IDE related compile_flags.txt + +# Archives +*.tar.gz diff --git a/TP1/Makefile b/TP1/Makefile new file mode 100644 index 0000000..ba97239 --- /dev/null +++ b/TP1/Makefile @@ -0,0 +1,22 @@ +NAME = TP1 - Groupe 4 +CPP_NAME = C++ +PROLOG_NAME = Prolog + +TAR = tar czf +RM = rm + +RAPPORT = Rapport/rapport.pdf +CPP = C-Cpp/ +PROLOG = Prolog/*.pl + +tgz-all: + $(TAR) "$(NAME).tar.gz" $(RAPPORT) $(CPP) $(PROLOG) + +tgz-cpp: + $(TAR) "$(NAME) - $(CPP_NAME).tar.gz" $(RAPPORT) $(CPP) + +tgz-prolog: + $(TAR) "$(NAME) - $(PROLOG_NAME).tar.gz" $(RAPPORT) $(PROLOG) + +clean: + $(RM) *.tar.gz