-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
41 lines (30 loc) · 1.03 KB
/
Makefile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
RUN = bundle exec
start: ## Run jekyll server
$(RUN) jekyll serve --watch
check: ## Check with htmlproofer
$(RUN) htmlproofer ./_site \
--check-html \
--allow-hash-href \
--disable_external \
--typhoeus-config '{ "headers": { "User-Agent": "Mozilla/5.0 (X11; Linux i686; rv:84.0) Gecko/20100101 Firefox/84.0" } }' \
--internal-domains hypha.coop
build: ## Build for web
@if [ "$(JEKYLL_ENV)" = "staging" ]; then \
$(RUN) jekyll build --config _config.yml,_config_staging.yml --key /tmp/secret.key; \
else \
$(RUN) jekyll build --config _config.yml --key /tmp/secret.key; \
fi
build-web: build
relativize: ## Relativize links in _site
(cd _site && npx github:patcon/all-relative#also-root)
build-dweb: build relativize ## Build for dweb
%:
@true
.PHONY: help
help:
@echo 'Usage: make <command>'
@echo
@echo 'where <command> is one of the following:'
@echo
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help