From 0c272824d6a06bab5183893ea44d3c91f142d8fb Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 12 Nov 2023 16:17:04 +0100 Subject: [PATCH] simplify compression --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d1f0586..e0d9594 100644 --- a/Makefile +++ b/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)"