Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pandoc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
templates
pandoc
Commits
e1518c11
Unverified
Commit
e1518c11
authored
5 years ago
by
ck85nori
Browse files
Options
Downloads
Patches
Plain Diff
adds title.tex to targets
parent
7325ad03
No related branches found
No related tags found
No related merge requests found
Pipeline
#752
failed
2 years ago
Stage: check
Stage: build
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Makefile
+17
-4
17 additions, 4 deletions
Makefile
with
18 additions
and
4 deletions
.gitignore
+
1
−
0
View file @
e1518c11
*.pdf
*.pdf
*.tex
img/graph/*.svg
img/graph/*.svg
img/plot/*.svg
img/plot/*.svg
This diff is collapsed.
Click to expand it.
Makefile
+
17
−
4
View file @
e1518c11
...
@@ -21,12 +21,18 @@ else
...
@@ -21,12 +21,18 @@ else
PANDOC_PDF_ENGINE_OPT_NAME
=
pdf-engine
PANDOC_PDF_ENGINE_OPT_NAME
=
pdf-engine
endif
endif
PANDOC_
PDF_
OPTIONS
=
\
PANDOC_OPTIONS
=
\
--fail-if-warnings
\
--fail-if-warnings
\
--standalone
\
--standalone
\
--filter
pandoc-citeproc
\
--filter
pandoc-citeproc
\
PANDOC_PDF_OPTIONS
=
\
$(
PANDOC_OPTIONS
)
\
--
$(
PANDOC_PDF_ENGINE_OPT_NAME
)
=
xelatex
\
--
$(
PANDOC_PDF_ENGINE_OPT_NAME
)
=
xelatex
\
PANDOC_TEX_OPTIONS
=
\
$(
PANDOC_OPTIONS
)
\
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# sources
# sources
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
...
@@ -38,9 +44,13 @@ SOURCES_MD = $(sort $(wildcard chapter-*.md))
...
@@ -38,9 +44,13 @@ SOURCES_MD = $(sort $(wildcard chapter-*.md))
# targets
# targets
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
default
:
all
TARGETS
=
\
$(
TITLE
)
.pdf
\
$(
TITLE
)
.tex
\
default
:
$(TITLE).pdf
all
:
$(T
ITLE).pdf
all
:
$(T
ARGETS)
SUBDIRS
=
\
SUBDIRS
=
\
img
\
img
\
...
@@ -53,6 +63,9 @@ subdirs: $(SUBDIRS)
...
@@ -53,6 +63,9 @@ subdirs: $(SUBDIRS)
$(TITLE).pdf
:
$(SUBDIRS) metadata.yml $(SOURCES_CSV) $(SOURCES_MD)
$(TITLE).pdf
:
$(SUBDIRS) metadata.yml $(SOURCES_CSV) $(SOURCES_MD)
$(
PANDOC
)
$(
PANDOC_PDF_OPTIONS
)
-o
$@
metadata.yml
$(
SOURCES_MD
)
$(
PANDOC
)
$(
PANDOC_PDF_OPTIONS
)
-o
$@
metadata.yml
$(
SOURCES_MD
)
$(TITLE).tex
:
$(SUBDIRS) metadata.yml $(SOURCES_CSV) $(SOURCES_MD)
$(
PANDOC
)
$(
PANDOC_TEX_OPTIONS
)
-o
$@
metadata.yml
$(
SOURCES_MD
)
check
:
spellcheck
check
:
spellcheck
spellcheck
:
spellcheck
:
...
@@ -65,7 +78,7 @@ clean:
...
@@ -65,7 +78,7 @@ clean:
@
for
dir
in
$(
SUBDIRS
);
do
\
@
for
dir
in
$(
SUBDIRS
);
do
\
$(
MAKE
)
-C
$$
dir
$@
;
\
$(
MAKE
)
-C
$$
dir
$@
;
\
done
done
rm
-f
$(
T
ITLE
)
.pdf
rm
-f
$(
T
ARGETS
)
.PHONY
:
\
.PHONY
:
\
all
\
all
\
...
...
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