Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
Latex
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maxime Bombar
Latex
Commits
6e3fec22
Commit
6e3fec22
authored
Aug 01, 2018
by
Maxime Bombar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allows to build pdf and display warning for a specific file
parent
c8e144ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
Main/Makefile
Main/Makefile
+14
-13
No files found.
Main/Makefile
View file @
6e3fec22
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment