Add makefile for archives

This commit is contained in:
Mylloon 2023-02-22 11:50:06 +01:00
parent 26df71e99e
commit 7f44df915a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 25 additions and 0 deletions

3
.gitignore vendored
View file

@ -22,3 +22,6 @@ Cours/
# IDE related # IDE related
compile_flags.txt compile_flags.txt
# Archives
*.tar.gz

22
TP1/Makefile Normal file
View file

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