add tgz target

This commit is contained in:
Mylloon 2023-03-19 20:32:32 +01:00
parent 089900614e
commit 68f1406a84
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

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