1
0
liminix/doc/Makefile

27 lines
474 B
Makefile
Raw Normal View History

2025-04-06 17:01:33 +00:00
DOCS=\
admin \
configuration \
development \
index \
installation \
intro \
modules \
outputs \
reference \
tutorial
2023-02-15 23:26:22 +00:00
hardware.rst: hardware.nix
@rm -f hardware.rst || true
@cp $$(nix-build hardware.nix) hardware.rst
2025-04-06 17:01:33 +00:00
%.html : %.adoc
asciidoctor -a stylesheet=asciidoc.css $<
html: Makefile $(patsubst %,%.html,$(DOCS))
2023-02-15 23:26:22 +00:00
2025-04-06 17:01:33 +00:00
install:
mkdir -p $(prefix)/doc
cp -a posts/* news.html index.html liminix.css $(prefix)
cp $(patsubst %,%.html,$(DOCS)) $(prefix)/doc