-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 920 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 920 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
26
27
28
29
30
31
32
33
34
.PHONY: help prepare cookie external html serve clean
.DEFAULT_GOAL := help
# Add help text after each target name starting with '\#\#'
help: ## show this help
@echo -e "Help for this makefile\n"
@echo "Possible commands are:"
@grep -h "##" $(MAKEFILE_LIST) | grep -v grep | sed -e 's/\(.*\):.*##\(.*\)/ \1: \2/'
prepare:
git submodule update --init
cookie:
(cd external-content/cookie/docs && \
BASE_URL=/development/ npx --yes mystmd build --html)
mkdir -p public/development
cp -r external-content/cookie/docs/_build/html/. public/development/
external: cookie
html: ## Build learn site (without external content) in `./public`
html: prepare
hugo
html-all: ## Buildlearn site (with external content) in `./public`
html-all: html external
serve: ## Serve site, typically on http://localhost:1313
serve: prepare
@hugo --printI18nWarnings server
clean: ## Remove built files
clean:
rm -rf public