-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
27 lines (23 loc) · 935 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
# Minimal makefile to build Antora documentation
BUILDDIR = deployment-guides/html
PLAYBOOK = deployment-guides/antora-playbook-local.yml
# Put it first so that "make" without argument is like "make help".
help: ## Show target options
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
clean: ## removes remote documentation and compiled documentation
rm -rf $(BUILDDIR) target bin
.PHONY: test
.ONESHELL:
docs: clean ## builds the antora documentation
docker run \
-t --rm \
-v ~/.git-credentials:/home/antora/.git-credentials \
-v $(shell pwd):/app -w /app \
docker.pkg.github.com/boozallen/sdp-docs/builder \
generate --generator booz-allen-site-generator \
--to-dir $(BUILDDIR) \
$(PLAYBOOK)
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
echo "Make command $@ not found"