-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (22 loc) · 749 Bytes
/
Makefile
File metadata and controls
25 lines (22 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.PHONY: help
help: # @HELP Print this message
help:
@echo "TARGETS:"
@grep -E '^.*: *# *@HELP' $(MAKEFILE_LIST) \
| awk ' \
BEGIN {FS = ": *# *@HELP"}; \
{ printf " %-20s %s\n", $$1, $$2 }; \
'
.PHONY: up
up: # @HELP Start the development environment
up:
@docker compose up
.PHONY: setup
setup: # @HELP Build the development containers and install app dependencies
setup:
@docker compose build
@docker compose run --rm jekyll bundle install
.PHONY: build
build: # @HELP Build the static site assets
build:
@docker compose run -e JEKYLL_REV=$$(git rev-parse --short HEAD) -e JEKYLL_ENV=production --rm jekyll bundle exec jekyll build -d ./../dist -c '_config.yml,_config.prod.yml'