spacing
This commit is contained in:
parent
7d6056a462
commit
2bb1a19e4b
1 changed files with 13 additions and 10 deletions
9
Makefile
9
Makefile
|
@ -107,7 +107,8 @@ doc: $(DOXYFILE)
|
||||||
cd documentation && doxygen && cd ..
|
cd documentation && doxygen && cd ..
|
||||||
|
|
||||||
msvc: $(VSCFILES)
|
msvc: $(VSCFILES)
|
||||||
@echo "Now these files ($?) already exist. If you wish to regenerate them, you should first delete them manually."
|
@echo "Now these files ($?) already exist. If you wish to regenerate them, you \
|
||||||
|
should first delete them manually."
|
||||||
|
|
||||||
$(VSCFILES):
|
$(VSCFILES):
|
||||||
@echo "Generating $@ ..."
|
@echo "Generating $@ ..."
|
||||||
|
@ -126,13 +127,15 @@ distminified: distdirminified dist
|
||||||
distdirminified: EXTRAFILES := $(filter-out $(VSCFILES),$(EXTRAFILES))
|
distdirminified: EXTRAFILES := $(filter-out $(VSCFILES),$(EXTRAFILES))
|
||||||
distdirminified: DISTFILES := $(filter-out $(DOXYFILE),$(DISTFILES))
|
distdirminified: DISTFILES := $(filter-out $(DOXYFILE),$(DISTFILES))
|
||||||
distdirminified: distdir
|
distdirminified: distdir
|
||||||
@$(CURL) https://raw.githubusercontent.com/BaseMax/C-Minifier/main/Minifier.c | $(CC) -o $(MINIFIER) $(CFLAGS) -x c -
|
@$(CURL) https://raw.githubusercontent.com/BaseMax/C-Minifier/main/Minifier.c | \
|
||||||
|
$(CC) -o $(MINIFIER) $(CFLAGS) -x c -
|
||||||
$(foreach f,$(SOURCES),./$(MINIFIER) $(f) $(distdir)/$(f);)
|
$(foreach f,$(SOURCES),./$(MINIFIER) $(f) $(distdir)/$(f);)
|
||||||
@$(RM) $(MINIFIER)
|
@$(RM) $(MINIFIER)
|
||||||
|
|
||||||
size: $(PROGNAME)
|
size: $(PROGNAME)
|
||||||
size: SIZEFILES = $(PROGNAME) $(filter-out $(VSCFILES) COPYING,$(EXTRAFILES))
|
size: SIZEFILES = $(PROGNAME) $(filter-out $(VSCFILES) COPYING,$(EXTRAFILES))
|
||||||
size: SIZEINFOS = ("; printf $$1; print "Ko - soit `$(shell echo $(SIZEFILES) | sed 's/ /`, `/g')`)"
|
size: SIZEINFOS = ("; printf $$1; print "/$(MAXSIZE)Ko - soit \
|
||||||
|
`$(shell echo $(SIZEFILES) | sed 's/ /`, `/g')`)"
|
||||||
size:
|
size:
|
||||||
@$(DU) --total $(SIZEFILES) | \
|
@$(DU) --total $(SIZEFILES) | \
|
||||||
$(TAIL) -n 1 | \
|
$(TAIL) -n 1 | \
|
||||||
|
|
Reference in a new issue