Skip to content

Commit

Permalink
Makefile: require index.md (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-belkin authored Jun 24, 2021
1 parent 243208b commit b33336b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ endif
.PHONY: site docker-serve repo-check clean clean-rmd

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

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

## * docker-serve : use Docker to serve the site
Expand Down Expand Up @@ -172,3 +172,10 @@ ifeq (, $(PYTHON))
else
@:
endif

index.md :
ifeq (, $(wildcard index.md))
$(error index.md not found)
else
@:
endif

0 comments on commit b33336b

Please sign in to comment.