Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dokumente
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sven
dokumente
Commits
889dcee2
Commit
889dcee2
authored
7 years ago
by
rohieb
Browse files
Options
Downloads
Patches
Plain Diff
add a simple Makefile
parent
e840abdb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+49
-0
49 additions, 0 deletions
Makefile
with
49 additions
and
0 deletions
Makefile
0 → 100644
+
49
−
0
View file @
889dcee2
#!/usr/bin/make -f
SRCS
=
$(
wildcard
\
Mitgliederversammlung
*
.tex
\
Gründungsversammlung
*
.tex
\
Satzung.tex
\
Beitragsordnung.tex
\
Spaceordnung.tex
\
)
JOBNAMES
=
$(
basename
$(
SRCS
))
PDFS
=
$(
addsuffix .pdf,
$(
JOBNAMES
))
LATESTJOB
=
$(
basename
$(
shell
ls
-1t
$(
SRCS
)
|
head
-n
1
))
define
latexmk
latexmk
-pdf
-dvi-
-ps-
endef
all
:
$(PDFS)
help
:
@
echo
"Available make targets:"
@
echo
" make, make all -- build PDFs for all .tex documents"
@
echo
" make clean -- remove all temporary files"
@
echo
" make mrproper -- remove all temporary and output files"
@
echo
" make help -- this help"
@
echo
" make doc.pdf -- build doc.pdf from doc.tex"
@
echo
" make preview -- build the most recent .tex file, and set PVC=1"
@
echo
@
echo
"Variables:"
@
echo
" PVC=1 -- when building, start a PDF viewer and poll for updates"
@
echo
" on the .tex file"
clean
:
rm
-f
$(
addsuffix .aux,
$(
JOBNAMES
))
\
$(
addsuffix .fdb_latexmk,
$(
JOBNAMES
))
\
$(
addsuffix .fls,
$(
JOBNAMES
))
\
$(
addsuffix .log,
$(
JOBNAMES
))
\
$(
addsuffix .out,
$(
JOBNAMES
))
\
$(
addsuffix .toc,
$(
JOBNAMES
))
mrproper
:
clean
rm
-f
$(
PDFS
)
preview
:
$(
latexmk
)
-pvc
$(
LATESTJOB
)
.tex
%.pdf
:
%.tex
$(
latexmk
)
$(
if
$(
PVC
)
,-pvc,-pvc-
)
"
$<
"
# vim: ft=make ts=8 noet
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