Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ots-doctools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
ots
ots-doctools
Commits
94dfa88b
Commit
94dfa88b
authored
5 years ago
by
James Vasile
Browse files
Options
Downloads
Patches
Plain Diff
Force update of pdf when we clean
parent
9d325760
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
+1
-1
1 addition, 1 deletion
Makefile
with
1 addition
and
1 deletion
Makefile
+
1
−
1
View file @
94dfa88b
...
...
@@ -94,13 +94,13 @@ LTX_SRCS := $(shell find . -name '*.ltx' ! -path './.\#*')
# LaTeX litters a lot
clean_latex
:
@
latexmk
-c
-f
$(
patsubst %.yaml.ltx,%.tex,
$(
wildcard
*
.yaml.ltx
))
$(
wildcard
*
.ltx
)
$(
wildcard
*
.tex
)
@
touch
Makefile
# force update of pdf on next make
# We don't remove .pdf files by default, even though they're generated
# files, because in practice one usually wants to keep them around.
# However, when a series of PDFs ordered by revision number (e.g.,
# "foo-r1729.pdf", etc) is present, remove all but the most recent.
clean
:
clean_latex
@
touch
Makefile
# force update of pdf on next make
@
(
find
.
-maxdepth
1
-regex
'.*-r[0-9]+\.pdf'
-print
\
|
sort
>
$$$$
-rev-pdfs
.tmp
;
\
cat
$$$$
-rev-pdfs
.tmp |
sort
|
tail
-1
>
$$$$
-rev-pdf-to-save
.tmp
;
\
...
...
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