Website/Makefile

30 lines
902 B
Makefile
Raw Normal View History

2017-09-13 13:23:10 +02:00
#!/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.