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
|
CXXFLAGS = -std=c++11
|
||||||
RM = rm
|
RM = rm
|
||||||
|
|
||||||
|
NAME = TP2 - Groupe 4
|
||||||
|
TAR = tar --exclude="README.*" --exclude="Rapport" -czf
|
||||||
|
RAPPORT = Rapport/rapport.tex
|
||||||
|
|
||||||
SOURCES = $(wildcard src/*.cpp)
|
SOURCES = $(wildcard src/*.cpp)
|
||||||
OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES)))
|
OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES)))
|
||||||
|
|
||||||
|
@ -23,5 +27,10 @@ compilation: $(OBJETS)
|
||||||
all:
|
all:
|
||||||
rand_player
|
rand_player
|
||||||
|
|
||||||
|
tgz:
|
||||||
|
$(MAKE) clean 2> /dev/null
|
||||||
|
$(TAR) "$(NAME).tar.gz" $(RAPPORT) *
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OBJETS) $(EXE)
|
-$(RM) $(OBJETS) $(EXE)
|
||||||
|
-$(RM) *.tar.gz
|
||||||
|
|
Reference in a new issue