aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2020-06-20 13:05:21 +0200
committerJonas Smedegaard <dr@jones.dk>2020-06-20 13:11:59 +0200
commitf8c9b361b169d395bf5dbbeb6bafb702d3832795 (patch)
treed8bf113981db30f0b9dab123c0c415aadfdb2b19 /Makefile
parent7d076ad39994fda8d86f7a4dfe9822c8c85aa915 (diff)
parent8fe1e54f704d6a1eefff2109d578821cc0c52315 (diff)
Merge development from couchdesign branch
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index cd21f72..a6839fc 100644
--- a/Makefile
+++ b/Makefile
@@ -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