Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomlourenco committed Nov 19, 2023
2 parents 8764235 + 3676b91 commit ee2cd27
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ SILENT:=-interaction=batchmode
SYNCTEX:=1

TEXVERSIONS=$(shell ls /usr/local/texlive/ | fgrep -v texmf-local)
TIMES=$(shell printf "TIMMINGS for last run:" ;\
fgrep "TIME process" -A 1 *.log | while read a; do \
read b; read c; \
S=`echo $$a | cut -d ' ' -f3 | cut -d '=' -f 1`; \
T=`echo $$b | cut -d ':' -f 2 | cut -d ' ' -f 2`; \
printf "\n%12s = %7.2f s" "$$S" "$$T"; \
done | tr '\n ' '\1\2')

B:=template
F:=-time -shell-escape -synctex=$(SYNCTEX) -output-format=pdf -file-line-error $(FLAGS)
Expand Down Expand Up @@ -41,12 +48,12 @@ $(T): $(S)
.PHONY: pdf
pdf: $(S)
$(L) -pdf $(SILENT) $(B)
Scripts/times.sh
@echo $(TIMES) | tr '\1@\2' '\n\t '

.PHONY: xe lua
xe lua: $(S)
$(L) -pdf$@ $(SILENT) $(B)
Scripts/times.sh
@echo $(TIMES) | tr '\1@\2' '\n\t '

.PHONY: v view
v view: $(T)
Expand All @@ -55,7 +62,7 @@ v view: $(T)
.PHONY: vv verb verbose
vv verb verbose:
$(L) -pdf $(B)
Scripts/times.sh
@echo $(TIMES) | tr '\1@\2' '\n\t '

.PHONY: $(TEXVERSIONS)
$(TEXVERSIONS):
Expand Down Expand Up @@ -109,6 +116,16 @@ bump3:
Scripts/newversion.sh 3
# $(MAKE) publish

.PHONY: times
times:
@echo $(TIMES) | tr '\1@\2' '\n\t '
# fgrep "TIME process" -A 1 *.log | while read a; do \
# read b; read c; \
# S=`echo $$a | cut -d ' ' -f3 | cut -d '=' -f 1`; \
# T=`echo $$b | cut -d ':' -f 2`; \
# echo TIME $$S =$$T; \
# done

commit:
git cam "Version $(VERSION)."
git checkout main
Expand Down

0 comments on commit ee2cd27

Please sign in to comment.