var for tar ext
This commit is contained in:
parent
fbc16b9e06
commit
f0bb6f8c31
1 changed files with 3 additions and 2 deletions
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue