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 RM = rm -r
TAR = tar -cf TAR = tar -cf
CP = cp -r CP = cp -r
MKDIR = mkdir -p
SRC_DIR = src SRC_DIR = src
INC_DIR = includes INC_DIR = includes
@ -12,11 +13,9 @@ OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES)))
EXE = projet EXE = projet
EXE_EXT = out EXE_EXT = out
PDF_LOCATION = report
PDF_FILE = explications.pdf
ARCHIVE = binome38.tar ARCHIVE = binome38.tar
ARCHIVE_DIR = Botti-Kennel ARCHIVE_DIR = Botti-Kennel
PDF_DIR = report
%.cpp.o: $(SRC_DIR)/%.cpp %.cpp.o: $(SRC_DIR)/%.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS) $(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS)
@ -46,8 +45,8 @@ clean: pdf-clean
-$(RM) $(OBJETS) "$(EXE).$(EXE_EXT)" "$(ARCHIVE)" -$(RM) $(OBJETS) "$(EXE).$(EXE_EXT)" "$(ARCHIVE)"
archive: pdf-make archive: pdf-make
@mkdir $(ARCHIVE_DIR) $(MKDIR) $(ARCHIVE_DIR)
$(CP) "$(SRC_DIR)/" "$(INC_DIR)/" Makefile README.md "$(PDF_LOCATION)/$(PDF_FILE)" \ $(CP) "$(SRC_DIR)/" "$(INC_DIR)/" Makefile README.md $(wildcard $(PDF_DIR)/*.pdf) \
$(ARCHIVE_DIR) $(ARCHIVE_DIR)
$(TAR) "$(ARCHIVE)" $(ARCHIVE_DIR) $(TAR) "$(ARCHIVE)" $(ARCHIVE_DIR)
$(RM) "$(ARCHIVE_DIR)" $(RM) "$(ARCHIVE_DIR)"