From f880906d566b3c719f82d891140cd10ddeb7b457 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 3 May 2023 14:36:37 +0200 Subject: [PATCH] some extra infos --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a03a92f..1720808 100644 --- a/Makefile +++ b/Makefile @@ -125,14 +125,16 @@ distdirminified: distdir @$(RM) $(MINIFIER) size: $(PROGNAME) +size: SIZEFILES = $(PROGNAME) $(filter-out $(VSCFILES) COPYING,$(EXTRAFILES)) +size: SIZEINFOS = ("; printf $$1; print ", soit $(foreach f,$(SIZEFILES),$(f),))" size: - @$(DU) --total $(PROGNAME) $(filter-out $(VSCFILES) $(DOXYFILE) COPYING,$(EXTRAFILES)) | \ + @$(DU) --total $(SIZEFILES) | \ $(TAIL) -n 1 | \ $(GREP) -o '[0-9]*K'| \ $(AWK) '{ \ if($$1 <= $(MAXSIZE)) { \ - printf "> Taille conforme ("; printf $$1; print ")" \ + printf "> Taille conforme $(SIZEINFOS) \ } else { \ - printf "> Fichiers trop lourd ("; printf $$1; print ")" \ + printf "> Fichiers trop lourd $(SIZEINFOS) \ } \ }'