add minifier for fun
This commit is contained in:
parent
f8b735e826
commit
c81205d865
1 changed files with 17 additions and 8 deletions
25
Makefile
25
Makefile
|
@ -5,14 +5,16 @@
|
||||||
# Modified : Anri KENNEL (anri.kennel@etud.univ-paris8.fr) - 03/05/2023
|
# Modified : Anri KENNEL (anri.kennel@etud.univ-paris8.fr) - 03/05/2023
|
||||||
|
|
||||||
# Définition des commandes utilisées
|
# Définition des commandes utilisées
|
||||||
CC = gcc
|
CC = gcc
|
||||||
ECHO = echo
|
ECHO = echo
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
TAR = tar
|
TAR = tar
|
||||||
ZIP = zip
|
ZIP = zip
|
||||||
MKDIR = mkdir
|
MKDIR = mkdir
|
||||||
CHMOD = chmod
|
CHMOD = chmod
|
||||||
CP = rsync -R
|
CP = rsync -R
|
||||||
|
MINIFIER = minifier
|
||||||
|
CURL = curl -s
|
||||||
|
|
||||||
# Déclaration des options du compilateur
|
# Déclaration des options du compilateur
|
||||||
CFLAGS = -Wall -O3
|
CFLAGS = -Wall -O3
|
||||||
|
@ -105,3 +107,10 @@ $(VSCFILES):
|
||||||
clean:
|
clean:
|
||||||
@$(RM) -r $(PROGNAME) $(OBJ) *~ $(distdir).tgz $(distdir).zip $(distdir)/ \
|
@$(RM) -r $(PROGNAME) $(OBJ) *~ $(distdir).tgz $(distdir).zip $(distdir)/ \
|
||||||
gmon.out core.* documentation/*~ shaders/*~ documentation/html
|
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
|
||||||
|
|
Reference in a new issue