guidelines/Makefile

28 lines
622 B
Makefile
Raw Normal View History

mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfile_dir := $(patsubst %/,%,$(dir $(mkfile_path)))
docsbuilder := $(abspath $(mkfile_dir)/docsbuilder.sh)
doc:
$(docsbuilder) -b
build: doc
.ONESHELL:
serve:
$(info *** Make sure to refresh pages without cache ***)
$(docsbuilder) -p
watch:
$(docsbuilder) -a
linkcheck:
$(docsbuilder) -k
$(docsbuilder) -p
linkchecker http://localhost:8080 --check-extern --no-robots \
--ignore-url "drupal.org" \
--ignore-url "file:///antora" \
--ignore-url 'http://localhost:8080/en-US'
$(docsbuilder) -k
.DEFAULT_GOAL := doc
.PHONY: doc linkcheck serve watch