Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lesson Template
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
prace-lessons
Lesson Template
Commits
d62084b6
Commit
d62084b6
authored
8 years ago
by
Raniere Silva
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #119 from itcarroll/gh-pages
Knit episodes only when any one RMarkdown source changes
parents
3d96a51a
8fb905e0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+10
-6
10 additions, 6 deletions
Makefile
with
10 additions
and
6 deletions
Makefile
+
10
−
6
View file @
d62084b6
...
@@ -9,6 +9,7 @@ DST=_site
...
@@ -9,6 +9,7 @@ DST=_site
# Controls
# Controls
.PHONY
:
commands clean files
.PHONY
:
commands clean files
.NOTPARALLEL
:
all
:
commands
all
:
commands
## commands : show all commands.
## commands : show all commands.
...
@@ -16,11 +17,11 @@ commands :
...
@@ -16,11 +17,11 @@ commands :
@
grep
-h
-E
'^##'
${
MAKEFILES
}
|
sed
-e
's/## //g'
@
grep
-h
-E
'^##'
${
MAKEFILES
}
|
sed
-e
's/## //g'
## serve : run a local server.
## serve : run a local server.
serve
:
lesson-
r
md
serve
:
lesson-md
${
JEKYLL
}
serve
${
JEKYLL
}
serve
## site : build files but do not run a server.
## site : build files but do not run a server.
site
:
lesson-
r
md
site
:
lesson-md
${
JEKYLL
}
build
${
JEKYLL
}
build
# repo-check : check repository settings.
# repo-check : check repository settings.
...
@@ -53,7 +54,7 @@ workshop-check :
...
@@ -53,7 +54,7 @@ workshop-check :
## ----------------------------------------
## ----------------------------------------
## Commands specific to lesson websites.
## Commands specific to lesson websites.
.PHONY
:
lesson-check lesson-
r
md lesson-files lesson-fixme
.PHONY
:
lesson-check lesson-md lesson-files lesson-fixme
# RMarkdown files
# RMarkdown files
RMD_SRC
=
$(
wildcard _episodes_rmd/??-
*
.Rmd
)
RMD_SRC
=
$(
wildcard _episodes_rmd/??-
*
.Rmd
)
...
@@ -79,9 +80,12 @@ HTML_DST = \
...
@@ -79,9 +80,12 @@ HTML_DST = \
$(
patsubst _extras/%.md,
${
DST
}
/%/index.html,
$(
wildcard _extras/
*
.md
))
\
$(
patsubst _extras/%.md,
${
DST
}
/%/index.html,
$(
wildcard _extras/
*
.md
))
\
${
DST
}
/license/index.html
${
DST
}
/license/index.html
## lesson-rmd : convert Rmarkdown files to markdown
## lesson-md : convert Rmarkdown files to markdown
lesson-rmd
:
$(RMD_SRC)
lesson-md
:
${RMD_DST}
@
bin/knit_lessons.sh
$(
RMD_SRC
)
# Use of .NOTPARALLEL makes rule execute only once
${RMD_DST}
:
${RMD_SRC}
@
bin/knit_lessons.sh
${
RMD_SRC
}
## lesson-check : validate lesson Markdown.
## lesson-check : validate lesson Markdown.
lesson-check
:
lesson-check
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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