diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -1,4 +1,4 @@ -# Depends: myrepos git mkdocs linkchecker libtext-hogan-perl +# Depends: myrepos git mkdocs w3c-linkchecker libtext-hogan-perl domain ?= example.org shellhost ?= shell.$(domain) @@ -20,13 +20,16 @@ all: doc doc: docs $(patsubst %,docs/%,$(subst -,/,$(notdir $(wildcard source/*)))) mkdocs build - linkchecker site/index.html +check: + checklink site/index.html + +# TODO: drop symlink removal when 2020-06-19 is well in the past docs: mkdir -p docs - ln -sf ../README.md docs/index.md -# ln -sf ../USE.md docs/use.md -# ln -sf ../ADMIN.md docs/admin.md + find docs -type l -delete + $(MUSTACHE) < README.md > docs/index.md + $(MUSTACHE) < SETUP.md > docs/setup.md docs/%: source mkdir -p docs/$* @@ -50,4 +53,4 @@ clean: distclean: clean rm -rf source -.PHONY: all doc clean distclean +.PHONY: all doc check clean distclean |