-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 1.09 KB
/
Makefile
File metadata and controls
40 lines (30 loc) · 1.09 KB
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
.PHONY: help prepare cookie cookie_ruby_deps cookie_web_prepare 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_ruby_deps:
(cd external-content/cookie && \
bundle install)
cookie_web_prepare:
(cd external-content/cookie && \
./helpers/fetch_repo_review_app.sh)
cookie: cookie_ruby_deps cookie_web_prepare
(cd external-content/cookie && \
JEKYLL_ENV=production bundle exec jekyll build --destination ../../public/development --baseurl "/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