use tar.gz

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

View file

@ -1,5 +1,5 @@
RM = rm -rf
TAR = tar -cf
TAR = tar -czf
CP = cp -r
MKDIR = mkdir -p
@ -9,6 +9,7 @@ BIN_DIR = bin
ENTRY = App
ARCHIVE_NAME = nom
ARCHIVE_EXT = tar.gz
run: compilation
run:
@ -21,10 +22,10 @@ all:
run
clean:
$(RM) $(BIN_DIR) "$(ARCHIVE_NAME).tar"
$(RM) $(BIN_DIR) "$(ARCHIVE_NAME).$(ARCHIVE_EXT)"
archive:
$(MKDIR) "$(ARCHIVE_NAME)"
$(CP) "$(SRC_DIR)" README.txt "$(ARCHIVE_NAME)"
$(TAR) "$(ARCHIVE_NAME).tar" "$(ARCHIVE_NAME)"
$(TAR) "$(ARCHIVE_NAME).$(ARCHIVE_EXT)" "$(ARCHIVE_NAME)"
$(RM) "$(ARCHIVE_NAME)"