From aeed60cef4abfff0de8f290d1a954e78b141aff9 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 3 May 2023 13:42:14 +0200 Subject: [PATCH] remove all unnecessary extra files when building the slimest archive possible --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 28a7923..435457c 100644 --- a/Makefile +++ b/Makefile @@ -108,9 +108,12 @@ clean: @$(RM) -r $(PROGNAME) $(OBJ) *~ $(distdir).tgz $(distdir).zip $(distdir)/ \ gmon.out core.* documentation/*~ shaders/*~ documentation/html +distminified: distdirminified dist + +# Remove all unnecessary extra files +distdirminified: EXTRAFILES := $(filter-out $(VSCFILES) $(DOXYFILE),$(EXTRAFILES)) +distdirminified: DISTFILES := $(filter-out $(DOXYFILE),$(DISTFILES)) distdirminified: distdir @$(CURL) https://raw.githubusercontent.com/BaseMax/C-Minifier/main/Minifier.c | $(CC) -o $(MINIFIER) $(CFLAGS) -x c - $(foreach f,$(SOURCES),./$(MINIFIER) $(f) $(distdir)/$(f);) @$(RM) $(MINIFIER) - -distminified: distdirminified dist