-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
34 lines (27 loc) · 871 Bytes
/
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
.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
content/shortcodes.md:
cp content/shortcodes.md.stub content/shortcodes.md
themes: themes/scientific-python-hugo-theme
html: ## Build site in `./public`
html: themes content/shortcodes.md
hugo
serve: ## Serve site, typically on http://localhost:1313
serve: themes content/shortcodes.md
@hugo --printI18nWarnings server
clean: ## Remove built files
clean:
rm -rf public