Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
git_tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orestis.malaspin
git_tutorial
Commits
9e596230
Commit
9e596230
authored
7 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
test other makefile
parent
14a31cbc
Branches
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.lecture
+94
-0
94 additions, 0 deletions
Makefile.lecture
with
94 additions
and
0 deletions
Makefile.lecture
0 → 100644
+
94
−
0
View file @
9e596230
# Author: Carsten Gips <carsten.gips@fh-bielefeld.de>
# Copyright: (c) 2016-2018 Carsten Gips
# License: MIT
## Path to this repository (to be used as git sub-module)
DATADIR
=
..
FILTERDIR
=
$(
DATADIR
)
/filters
RESOURCEDIR
=
$(
DATADIR
)
/resources
RESOURCEPATH
=
.:./figs:
$(
DATADIR
)
PANDOC
=
pandoc
## Source file and lecture prefix
## either defined here (all files) or given at cmd line like `make SRC=vl02.md`
SRC
?=
$(
wildcard vl
*
.md
)
ID
?=
pm
SLIDES
=
$(
SRC:%.md
=
${
ID
}
_%.pdf
)
HTML
=
$(
SRC:%.md
=
${
ID
}
_%.html
)
TARGETDIR
=
../distr/
## Lecture options
OPTIONS
=
-f
markdown
OPTIONS
+=
--data-dir
=
${
DATADIR
}
OPTIONS
+=
--resource-path
=
${
RESOURCEPATH
}
BEAMEROPTIONS
=
-t
beamer
BEAMEROPTIONS
+=
--pdf-engine
=
pdflatex
BEAMEROPTIONS
+=
--default-image-extension
=
pdf
BEAMEROPTIONS
+=
-V
theme:metropolis
BEAMEROPTIONS
+=
-V
themeoptions:numbering
=
none
-V
themeoptions:progressbar
=
foot
BEAMEROPTIONS
+=
-V
fontsize
=
smaller
BEAMEROPTIONS
+=
--slide-level
=
2
BEAMEROPTIONS
+=
--lua-filter
=
${
FILTERDIR
}
/tex.lua
BEAMEROPTIONS
+=
--include-in-header
=
${
RESOURCEDIR
}
/definitions.tex
BEAMEROPTIONS
+=
--include-in-header
=
${
RESOURCEDIR
}
/beamer.tex
BEAMEROPTIONS
+=
$(
OPTIONS
)
HTMLOPTIONS
=
-t
html
HTMLOPTIONS
+=
--default-image-extension
=
png
HTMLOPTIONS
+=
--standalone
--self-contained
HTMLOPTIONS
+=
--toc
--toc-depth
=
1
HTMLOPTIONS
+=
--strip-comments
HTMLOPTIONS
+=
--lua-filter
=
${
FILTERDIR
}
/html.lua
HTMLOPTIONS
+=
--css
=
${
RESOURCEDIR
}
/html.css
# insert `<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS_CHTML-full" type="text/javascript" data-external="1"></script>`
# with data-external="1" to prevent incorporating MathJax into the generated HTML document when using --self-contained
HTMLOPTIONS
+=
--include-in-header
=
${
RESOURCEDIR
}
/mathjaxurl.html
# use MathJax; URL points to blank dummy document to prevent incorporating MathJax into the generated HTML document when using --self-contained
HTMLOPTIONS
+=
--mathjax
=
${
RESOURCEDIR
}
/dummy.js
HTMLOPTIONS
+=
$(
OPTIONS
)
## Targets
all
:
$(SLIDES) $(HTML)
$(SRC
:
.md=): %: ${ID}_%.pdf ${ID}_%.html
${ID}_%.pdf
:
%.md metadata.yaml
$(
PANDOC
)
${
BEAMEROPTIONS
}
-o
$@
$^
${ID}_%.html
:
%.md metadata.yaml
$(
PANDOC
)
${
HTMLOPTIONS
}
-o
$@
$^
install
:
$(TARGETDIR) $(SLIDES) $(HTML)
mv
${
SLIDES
}
$(
TARGETDIR
)
mv
${
HTML
}
$(
TARGETDIR
)
$(TARGETDIR)
:
mkdir
$@
clean
:
rm
-f
$(
SLIDES
)
$(
HTML
)
.PHONY
:
all install clean
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