add tgz target
This commit is contained in:
parent
089900614e
commit
68f1406a84
1 changed files with 10 additions and 1 deletions
11
TP2/Makefile
11
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
|
||||
|
|
Reference in a new issue