From 1ee2bc56032d4a2b4fdbe1bc2e91492ea9e9ae54 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 28 Oct 2023 11:22:50 +0200 Subject: [PATCH] better clean ig --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 48e7e31..64e1d2f 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,8 @@ EXE_EXT = out PDF_LOCATION = report PDF_FILE = explications.pdf +ARCHIVE = $(EXE).tar + %.cpp.o: src/%.cpp $(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS) @@ -37,10 +39,11 @@ pdf-clean: $(MAKE) clean clean: pdf-clean - $(RM) $(OBJETS) $(EXE).$(EXE_EXT) + $(RM) $(OBJETS) "$(EXE).$(EXE_EXT)" "$(ARCHIVE)" archive: pdf-make - cp $(PDF_LOCATION)/$(PDF_FILE) . - $(TAR) "$(EXE).tar" $(SOURCES) $(wildcard includes/*.hpp) Makefile \ - binome.txt $(PDF_FILE) + cp "$(PDF_LOCATION)/$(PDF_FILE)" . + $(TAR) "$(ARCHIVE)" $(SOURCES) $(wildcard includes/*.hpp) Makefile \ + binome.txt "$(PDF_FILE)" # diagramme_uml.* + $(RM) "$(PDF_FILE)"