add minifier for fun

This commit is contained in:
Mylloon 2023-05-03 13:29:17 +02:00
parent f8b735e826
commit c81205d865
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -13,6 +13,8 @@ ZIP = zip
MKDIR = mkdir
CHMOD = chmod
CP = rsync -R
MINIFIER = minifier
CURL = curl -s
# Déclaration des options du compilateur
CFLAGS = -Wall -O3
@ -105,3 +107,10 @@ $(VSCFILES):
clean:
@$(RM) -r $(PROGNAME) $(OBJ) *~ $(distdir).tgz $(distdir).zip $(distdir)/ \
gmon.out core.* documentation/*~ shaders/*~ documentation/html
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