2025-04-06 17:01:33 +00:00
|
|
|
DOCS=\
|
|
|
|
admin \
|
|
|
|
configuration \
|
|
|
|
development \
|
|
|
|
index \
|
|
|
|
installation \
|
|
|
|
intro \
|
|
|
|
modules \
|
|
|
|
outputs \
|
2025-04-06 20:38:17 +00:00
|
|
|
hardware \
|
2025-04-06 17:01:33 +00:00
|
|
|
tutorial
|
2023-02-15 23:26:22 +00:00
|
|
|
|
2025-04-06 20:38:17 +00:00
|
|
|
hardware.adoc: hardware.nix
|
|
|
|
pandoc -f rst -t asciidoc -o $@ hardware.rst
|
2025-04-08 20:24:31 +00:00
|
|
|
# sections in an appendix need to start at ===
|
|
|
|
sed -E -i.bak -e 's/^(=*) /=\1 /g' hardware.adoc
|
2023-02-15 23:26:22 +00:00
|
|
|
|
2025-04-06 20:38:17 +00:00
|
|
|
html: Makefile $(patsubst %,%.adoc,$(DOCS))
|
|
|
|
asciidoctor -D _build -d book index.adoc
|
2023-02-15 23:26:22 +00:00
|
|
|
|
2025-04-06 17:01:33 +00:00
|
|
|
install:
|
|
|
|
mkdir -p $(prefix)/doc
|
2025-04-06 20:38:17 +00:00
|
|
|
cp -a _build/* $(prefix)/doc
|