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