simplify compression
This commit is contained in:
parent
3ea266b726
commit
0c272824d6
1 changed files with 4 additions and 5 deletions
9
Makefile
9
Makefile
|
@ -3,6 +3,7 @@ CXXFLAGS = --std=c++11
|
|||
RM = rm -r
|
||||
TAR = tar -cf
|
||||
CP = cp -r
|
||||
MKDIR = mkdir -p
|
||||
|
||||
SRC_DIR = src
|
||||
INC_DIR = includes
|
||||
|
@ -12,11 +13,9 @@ OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES)))
|
|||
EXE = projet
|
||||
EXE_EXT = out
|
||||
|
||||
PDF_LOCATION = report
|
||||
PDF_FILE = explications.pdf
|
||||
|
||||
ARCHIVE = binome38.tar
|
||||
ARCHIVE_DIR = Botti-Kennel
|
||||
PDF_DIR = report
|
||||
|
||||
%.cpp.o: $(SRC_DIR)/%.cpp
|
||||
$(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS)
|
||||
|
@ -46,8 +45,8 @@ clean: pdf-clean
|
|||
-$(RM) $(OBJETS) "$(EXE).$(EXE_EXT)" "$(ARCHIVE)"
|
||||
|
||||
archive: pdf-make
|
||||
@mkdir $(ARCHIVE_DIR)
|
||||
$(CP) "$(SRC_DIR)/" "$(INC_DIR)/" Makefile README.md "$(PDF_LOCATION)/$(PDF_FILE)" \
|
||||
$(MKDIR) $(ARCHIVE_DIR)
|
||||
$(CP) "$(SRC_DIR)/" "$(INC_DIR)/" Makefile README.md $(wildcard $(PDF_DIR)/*.pdf) \
|
||||
$(ARCHIVE_DIR)
|
||||
$(TAR) "$(ARCHIVE)" $(ARCHIVE_DIR)
|
||||
$(RM) "$(ARCHIVE_DIR)"
|
||||
|
|
Reference in a new issue