assets to archive

This commit is contained in:
Mylloon 2023-12-29 00:56:43 +01:00
parent 86eee781d6
commit c8ed64939d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -6,6 +6,7 @@ MKDIR = mkdir -p
SRC_DIR = src SRC_DIR = src
INC_DIR = includes INC_DIR = includes
ASS_DIR = assets
SOURCES = $(wildcard $(SRC_DIR)/*.cpp) $(wildcard $(SRC_DIR)/**/*.cpp) SOURCES = $(wildcard $(SRC_DIR)/*.cpp) $(wildcard $(SRC_DIR)/**/*.cpp)
OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES))) OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES)))
@ -55,6 +56,6 @@ clean: pdf-clean
archive: pdf-make archive: pdf-make
$(MKDIR) "$(ARCHIVE_DIR)" $(MKDIR) "$(ARCHIVE_DIR)"
$(CP) "$(SRC_DIR)" "$(INC_DIR)" Makefile README.md "$(wildcard $(PDF_DIR)/*.pdf)" \ $(CP) "$(SRC_DIR)" "$(INC_DIR)" Makefile README.md "$(wildcard $(PDF_DIR)/*.pdf)" \
"$(ARCHIVE_DIR)" "$(ASS_DIR)" "$(ARCHIVE_DIR)"
$(TAR) "$(ARCHIVE)" "$(ARCHIVE_DIR)" $(TAR) "$(ARCHIVE)" "$(ARCHIVE_DIR)"
$(RM) "$(ARCHIVE_DIR)" $(RM) "$(ARCHIVE_DIR)"