forked from jenkinsci/templating-engine-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (24 loc) · 1.04 KB
/
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
# Minimal makefile to build Antora documentation
BUILDDIR = docs/html
PLAYBOOK = 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)/**
.ONESHELL:
install: ## installs the project's npm dependencies
[ ! -d node_modules ] && npm i || true
.PHONY: docs
docs: clean install ## builds the antora documentation
$(shell npm bin)/antora generate --fetch --to-dir $(BUILDDIR) $(PLAYBOOK)
preview: clean install ## runs a local preview server to view changes to the documentation
$(shell npm bin)/gulp preview
jpi: ## builds the jpi via gradle
./gradlew clean jpi
test: ## runs the plugin's test suite
./gradlew clean test
# 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"