-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 750 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 750 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
.PHONY: help themes html serve clean
.DEFAULT_GOAL := help
help:
@grep ": ##" Makefile | grep -v grep | tr -d '#'
themes/scientific-python-hugo-theme:
@if [ ! -d "$<" ]; then \
echo "*** ERROR: missing theme" ; \
echo ; \
echo "It looks as though you are missing the themes directory."; \
echo "You need to add the scientific-python-hugo-theme as a submodule."; \
echo ; \
echo "Please see https://theme.scientific-python.org/getstarted/"; \
echo ; \
exit 1; \
fi
themes: themes/scientific-python-hugo-theme
html: ## Build site in `./public`
html: themes
hugo
serve: ## Serve site, typically on http://localhost:1313
serve: themes
@hugo --printI18nWarnings server
clean: ## Remove built files
clean:
rm -rf public