From 68f1406a840402cd7e6bd6c9912b2ec470da1470 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 19 Mar 2023 20:32:32 +0100 Subject: [PATCH] add tgz target --- TP2/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/TP2/Makefile b/TP2/Makefile index d7fd387..88a0ae9 100644 --- a/TP2/Makefile +++ b/TP2/Makefile @@ -2,6 +2,10 @@ CXX = g++ CXXFLAGS = -std=c++11 RM = rm +NAME = TP2 - Groupe 4 +TAR = tar --exclude="README.*" --exclude="Rapport" -czf +RAPPORT = Rapport/rapport.tex + SOURCES = $(wildcard src/*.cpp) OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES))) @@ -23,5 +27,10 @@ compilation: $(OBJETS) all: rand_player +tgz: + $(MAKE) clean 2> /dev/null + $(TAR) "$(NAME).tar.gz" $(RAPPORT) * + clean: - $(RM) $(OBJETS) $(EXE) + -$(RM) $(OBJETS) $(EXE) + -$(RM) *.tar.gz