From f0bb6f8c31fcecfe54dd9fb69fafbd75bf623c7b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 17 Oct 2024 16:22:39 +0200 Subject: [PATCH] var for tar ext --- c_project_archive_report.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/c_project_archive_report.mk b/c_project_archive_report.mk index 238837a..40c6b58 100644 --- a/c_project_archive_report.mk +++ b/c_project_archive_report.mk @@ -16,6 +16,7 @@ EXE = project EXE_EXT = .elf ARCHIVE_NAME = nom1-nom2 +ARCHIVE_EXT = tar PDF_DIR = report PDF_NEWNAME = Rapport de projet @@ -45,11 +46,11 @@ pdf-clean: $(MAKE) clean clean: pdf-clean - $(RM) $(OBJETS) "$(EXE)$(EXE_EXT)" "$(ARCHIVE_NAME).tar" + $(RM) $(OBJETS) "$(EXE)$(EXE_EXT)" "$(ARCHIVE_NAME).$(ARCHIVE_EXT)" archive: pdf-make $(MKDIR) "$(ARCHIVE_NAME)" $(CP) "$(SRC_DIR)" "$(INC_DIR)" Makefile README.md \ "$(wildcard $(PDF_DIR)/*.pdf)" "$(ARCHIVE_NAME)" - $(TAR) "$(ARCHIVE_NAME).tar" "$(ARCHIVE_NAME)" + $(TAR) "$(ARCHIVE_NAME).$(ARCHIVE_EXT)" "$(ARCHIVE_NAME)" $(RM) "$(ARCHIVE_NAME)"