1
0
liminix/doc/Makefile

24 lines
452 B
Makefile
Raw Normal View History

2025-04-06 17:01:33 +00:00
DOCS=\
admin \
configuration \
development \
index \
installation \
intro \
2025-04-06 20:38:17 +00:00
hardware \
module-options-generated.inc \
outputs-generated.inc \
2025-04-06 17:01:33 +00:00
tutorial
2023-02-15 23:26:22 +00:00
%.adoc: %.rst
pandoc -f rst -t asciidoc $< | sed -E -e 's/^(=*) /=\1 /g' > $@
2025-04-06 20:38:17 +00:00
hardware.adoc: hardware.nix
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:
2025-04-09 23:22:29 +00:00
mkdir -p $(prefix)/share/doc/liminix
cp -a _build/* $(prefix)/share/doc/liminix