var for tar ext

This commit is contained in:
Mylloon 2024-10-17 16:22:39 +02:00
parent fbc16b9e06
commit f0bb6f8c31
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

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