Skip to content

Commit b33336b

Browse files
authored
Makefile: require index.md (#607)
1 parent 243208b commit b33336b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ endif
4141
.PHONY: site docker-serve repo-check clean clean-rmd
4242

4343
## * serve : render website and run a local server
44-
serve : lesson-md
44+
serve : lesson-md index.md
4545
${JEKYLL} serve
4646

4747
## * site : build website but do not run a server
48-
site : lesson-md
48+
site : lesson-md index.md
4949
${JEKYLL} build
5050

5151
## * docker-serve : use Docker to serve the site
@@ -172,3 +172,10 @@ ifeq (, $(PYTHON))
172172
else
173173
@:
174174
endif
175+
176+
index.md :
177+
ifeq (, $(wildcard index.md))
178+
$(error index.md not found)
179+
else
180+
@:
181+
endif

0 commit comments

Comments
 (0)