2017-04-25 20:16:56 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
# Copyright (c) 2017 Franco Masotti.
|
|
|
|
# See LICENSE file for details.
|
|
|
|
|
2018-03-06 15:12:02 +01:00
|
|
|
PORT = 3050
|
2020-12-10 17:37:47 +01:00
|
|
|
default: install-dev
|
|
|
|
|
|
|
|
install-dev:
|
|
|
|
pipenv install --dev
|
|
|
|
pipenv run pre-commit install
|
|
|
|
|
|
|
|
uninstall-dev:
|
|
|
|
pipenv --rm
|
|
|
|
|
2020-01-26 16:36:16 +01:00
|
|
|
all: clean build serve-global
|
2017-04-25 20:16:56 +02:00
|
|
|
|
|
|
|
build:
|
2020-01-26 16:36:16 +01:00
|
|
|
@jekyll build --trace --strict_front_matter --verbose --safe -t --future
|
2017-04-25 20:16:56 +02:00
|
|
|
|
|
|
|
serve:
|
2020-01-26 16:36:16 +01:00
|
|
|
@jekyll serve --trace --future
|
2017-04-25 20:16:56 +02:00
|
|
|
|
|
|
|
serve-global:
|
2020-01-26 16:36:16 +01:00
|
|
|
@jekyll serve --trace --host=0.0.0.0 --port=$(PORT) --future
|
2017-04-25 20:16:56 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -rf _site
|
2020-12-10 17:37:47 +01:00
|
|
|
|
|
|
|
.PHONY: default install-dev uninstall-dev all build serve serve-global clean
|