Add makefile for archives
This commit is contained in:
parent
26df71e99e
commit
7f44df915a
2 changed files with 25 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -22,3 +22,6 @@ Cours/
|
||||||
|
|
||||||
# IDE related
|
# IDE related
|
||||||
compile_flags.txt
|
compile_flags.txt
|
||||||
|
|
||||||
|
# Archives
|
||||||
|
*.tar.gz
|
||||||
|
|
22
TP1/Makefile
Normal file
22
TP1/Makefile
Normal 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
|
Reference in a new issue