simplify compression

This commit is contained in:
Mylloon 2023-11-12 16:17:04 +01:00
parent 3ea266b726
commit 0c272824d6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

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