Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LaTeX Template HsH
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Wille
LaTeX Template HsH
Commits
c95d1709
Commit
c95d1709
authored
4 years ago
by
Jan Wille
Browse files
Options
Downloads
Patches
Plain Diff
makefile nochmal überarbeitet
parent
2d642fbc
No related branches found
No related tags found
2 merge requests
!6
Development
,
!5
Development
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+12
-11
12 additions, 11 deletions
Makefile
with
12 additions
and
11 deletions
Makefile
+
12
−
11
View file @
c95d1709
# Makefile for Latex project
NAME
=
test
LATEX
=
pdflatex
BIBTEX
=
biber
SUBDIRS
=
img plt
OUTDIR
=
build
TEX_FLAGS
=
-file-line-error
-interaction
=
nonstopmode
-include-directory
=
.
\s
rc
-quiet
SUB_TEX_FILES
=
$(
wildcard img/
*
.tex
)
$(
wildcard plt/
*
.tex
)
SUB_PDF_FILES
=
$(
join
$(
dir
$(
SUB_TEX_FILES
))
,
$(
addprefix
$(
OUTDIR
)
/,
$(
notdir
$(
SUB_TEX_FILES:tex
=
pdf
))))
TEX_FLAGS
=
-file-line-error
-interaction
=
nonstopmode
COM_FLAGS
=
-output-directory
=
build
-quiet
GARBAGE_PATTERNS
=
*
.aux
*
.bbl
*
.bcf
*
.blg
*
.idx
*
.ind
*
.lof
*
.lot
*
.log
*
.xml
*
.toc
SUB_TEX_FILES
=
$(
foreach D,
$(
SUBDIRS
)
,
$(
wildcard
$(
D
)
/
*
.tex
))
SUB_PDF_FILES
=
$(
join
$(
dir
$(
SUB_TEX_FILES
))
,
$(
addprefix
$(
OUTDIR
)
/,
$(
notdir
$(
SUB_TEX_FILES:tex
=
pdf
))))
GARBAGE
=
$(
foreach D,.
$(
SUBDIRS
)
,
$(
wildcard
$(
addprefix
$(
D
)
/
$(
OUTDIR
)
/,
$(
GARBAGE_PATTERNS
))))
export
TEXINPUTS
:=
$(
CURDIR
)
\s
rc
all
:
bib
$(
LATEX
)
-output-directory
=
$(
OUTDIR
)
$(
TEX_FLAGS
)
$(
NAME
)
.tex
$(
LATEX
)
-synctex
=
1
-output-directory
=
$(
OUTDIR
)
$(
TEX_FLAGS
)
$(
NAME
)
.tex
$(
LATEX
)
$(
TEX_FLAGS
)
$(
COM_FLAGS
)
$(
NAME
)
.tex
$(
LATEX
)
-synctex
=
1
$(
TEX_FLAGS
)
$(
COM_FLAGS
)
$(
NAME
)
.tex
copy /Y
$(
OUTDIR
)
\$
(
NAME
)
.pdf .
\
pdf
:
$(SUB_PDF_FILES)
$(
LATEX
)
-synctex
=
1
-output-directory
=
$(
OUTDIR
)
$(
TEX_FLAGS
)
$(
NAME
)
.tex
copy /Y
$(
OUTDIR
)
\$
(
NAME
)
.pdf .
\
$(
LATEX
)
-synctex
=
1
$(
TEX_FLAGS
)
$(
COM_FLAGS
)
$(
NAME
)
.tex
bib
:
pdf $(OUTDIR)
\$
(NAME).bcf
$(
BIBTEX
)
-output-directory
$(
OUTDIR
)
$(
NAME
)
$(
BIBTEX
)
$(
COM_FLAGS
)
$(
NAME
)
$(SUB_PDF_FILES)
:
$(SUB_TEX_FILES)
$(
LATEX
)
-output-directory
=
$(
dir
$@
)
$(
TEX_FLAGS
)
$(
subst build/,
$(
notdir
$(
@:pdf
=
tex
))
,
$(
dir
$@
))
cd
$(
subst build/,,
$(
dir
$@
))
&&
$(
LATEX
)
$(
TEX_FLAGS
)
$(
COM_FLAGS
)
$(
notdir
$(
@:pdf
=
tex
))
clean
:
tidy
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment