File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -9,18 +9,19 @@ DST=_site
9
9
10
10
# Controls
11
11
.PHONY : commands clean files
12
+ .NOTPARALLEL :
12
13
all : commands
13
14
14
15
# # commands : show all commands.
15
16
commands :
16
17
@grep -h -E ' ^##' ${MAKEFILES} | sed -e ' s/## //g'
17
18
18
19
# # serve : run a local server.
19
- serve : lesson-rmd
20
+ serve : lesson-md
20
21
${JEKYLL} serve
21
22
22
23
# # site : build files but do not run a server.
23
- site : lesson-rmd
24
+ site : lesson-md
24
25
${JEKYLL} build
25
26
26
27
# repo-check : check repository settings.
@@ -53,7 +54,7 @@ workshop-check :
53
54
# # ----------------------------------------
54
55
# # Commands specific to lesson websites.
55
56
56
- .PHONY : lesson-check lesson-rmd lesson-files lesson-fixme
57
+ .PHONY : lesson-check lesson-md lesson-files lesson-fixme
57
58
58
59
# RMarkdown files
59
60
RMD_SRC = $(wildcard _episodes_rmd/??-* .Rmd)
@@ -79,9 +80,12 @@ HTML_DST = \
79
80
$(patsubst _extras/% .md,${DST}/% /index.html,$(wildcard _extras/* .md) ) \
80
81
${DST}/license/index.html
81
82
82
- # # lesson-rmd : convert Rmarkdown files to markdown
83
- lesson-rmd : $(RMD_SRC )
84
- @bin/knit_lessons.sh $(RMD_SRC )
83
+ # # lesson-md : convert Rmarkdown files to markdown
84
+ lesson-md : ${RMD_DST}
85
+
86
+ # Use of .NOTPARALLEL makes rule execute only once
87
+ ${RMD_DST} : ${RMD_SRC}
88
+ @bin/knit_lessons.sh ${RMD_SRC}
85
89
86
90
# # lesson-check : validate lesson Markdown.
87
91
lesson-check :
You can’t perform that action at this time.
0 commit comments