bible_documentations/Makefile

30 lines
692 B
Makefile
Raw Normal View History

2020-07-02 14:53:09 +02:00
all: preview
2020-07-02 11:42:34 +02:00
# set variable
BUNDLE := bundle
JEK := $(BUNDLE) exec jekyll
# Prepare the build by installing the modules that aren't installed to
# the local `vendor/` folder to avoid conflicts.
check-plugins:
$(BUNDLE) check || $(BUNDLE) install --path vendor/bundle
$(BUNDLE) update
# run a local webserver and update automatically when a change is
# made to view the modifications before pushing them to the server.
preview: check-plugins
2021-05-13 22:35:41 +02:00
$(JEK) serve --drafts --watch --trace
2020-07-02 11:42:34 +02:00
# just build to install the thing
2020-07-02 14:53:09 +02:00
push: check-plugins
2020-07-02 11:42:34 +02:00
$(JEK) build
2020-07-02 14:53:09 +02:00
rsync -Prlt --delete --exclude=up/ _site/ yatis@creativecalc.fr:/home/yatis/bible/
2020-07-02 11:42:34 +02:00
.PHONY: check-plugins
.PHONY: preview build-all