Commit 6e3fec22 authored by Maxime Bombar's avatar Maxime Bombar

Allows to build pdf and display warning for a specific file

parent c8e144ea
......@@ -27,25 +27,26 @@ OUT := $(patsubst %.tex,%.out, $(TEXDOCS))
LOG := $(patsubst %.tex,%.log, $(TEXDOCS))
%.pdf: %.tex
# Prevents some intermediate files to be automatically deleted...
.PRECIOUS: %.log %.pdf Makefile
%.log: %.tex
$(PDFLATEX) $<
%.warn: %.log
@echo "${shell echo 'There are $$(( $$($(CMD) $(WARNINGS) | wc -l)-1 ))' warning\(s\)}"
@echo "${shell echo 'There are $$($(CMD) $(REGEXBOX) | wc -l)' bad boxe\(s\)}"
## all : build every file.
all:
$(PDFLATEX)
## rebuild : clean and rebuild all files.
rebuild: cleanall all
## warnings : Display how many warnings and bad boxes are found when compiling main.tex
warnings: main.tex
$(PDFLATEX) $<
%.showwarn: %.log
@echo "${shell echo 'There are $$(( $$($(CMD) $(WARNINGS) | wc -l)-1 ))' warning\(s\) for $*:}"
@echo "${shell echo '$$( $(CMD) $(WARNINGS) | tail +2)' }"
@echo "${shell echo $(\n)}"
@echo "${shell echo 'There are $$(( $$($(CMDMAIN) $(WARNINGS) | wc -l)-1 ))' warning\(s\)}"
@echo "${shell echo 'There are $$($(CMDMAIN) $(REGEXBOX) | wc -l)' bad boxe\(s\)}"
@echo "${shell echo 'There are $$($(CMD) $(REGEXBOX) | wc -l)' bad boxe\(s\) for $*:}"
@echo "${shell echo '$$( $(CMD) $(REGEXBOX))' }"
%.pdf: %.log
@echo "${shell echo 'There are $$(( $$($(CMD) $(WARNINGS) | wc -l)-1 ))' warning\(s\)}"
@echo "${shell echo 'There are $$($(CMD) $(REGEXBOX) | wc -l)' bad boxe\(s\)}"
## make all : Builds every file in the current directory.
all: $(TEXDOCS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment