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