30 lines
902 B
Makefile
30 lines
902 B
Makefile
|
#!/usr/bin/make -f
|
||
|
#*****************************************************************************#
|
||
|
# Targets for the end user, which is me. #
|
||
|
#*****************************************************************************#
|
||
|
# Preview in local how it will render.
|
||
|
preview prev: -all-watch
|
||
|
|
||
|
.PHONY: preview prev
|
||
|
#*****************************************************************************#
|
||
|
# Internal rules #
|
||
|
#*****************************************************************************#
|
||
|
BUNDLE := bundle
|
||
|
JEK := $(BUNDLE) exec jekyll
|
||
|
|
||
|
# Prepare.
|
||
|
-prepare:
|
||
|
$(BUNDLE) check || $(BUNDLE) install --path vendor/bundle
|
||
|
|
||
|
# Make it all.
|
||
|
-all: -prepare
|
||
|
$(JEK) build
|
||
|
|
||
|
# Make the drafts and watch.
|
||
|
-all-watch: -prepare
|
||
|
$(JEK) serve --drafts --watch
|
||
|
|
||
|
.PHONY: -prepare
|
||
|
.PHONY: -all -all-watch
|
||
|
# End of file.
|