Skip to content

Commit

Permalink
Update the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanUkhov committed Jan 15, 2024
1 parent ab2e90a commit 6f0dbd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
.jekyll-cache
.rstudio
.sass-cache
/.bundle
/vendor
Gemfile.lock
_caches
_site
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
.PHONY: all
all: serve

.PHONY: build
build:
JEKYLL_ENV=production bundle exec jekyll build
cp CNAME _site

.PHONY: compile
compile:
inotifywait -e close_write,moved_to,create -m _drafts | \
while read -r directory events filename; do \
./_scripts/compile.R; \
done

.PHONY: serve
serve:
bundle exec jekyll serve --drafts

.PHONY: all build compile serve

0 comments on commit 6f0dbd6

Please sign in to comment.