aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-03-03 16:22:01 +0000
committers-ol <s-ol@users.noreply.github.com>2020-03-05 10:36:33 +0000
commitec683e448958fbd2e8e0b2f5c9e90d5ce9e0b200 (patch)
treecb8016679fe6018879ba98756e78cd5cbc39330d /Makefile
parentadd doc generator (diff)
downloadalive-ec683e448958fbd2e8e0b2f5c9e90d5ce9e0b200.tar.gz
alive-ec683e448958fbd2e8e0b2f5c9e90d5ce9e0b200.zip
add index and guide pages
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b1d7263..3a91ad9 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,11 @@ MODREFS=$(MODULES:lib/%.moon=docs/reference/%.html)
.PHONY: docs clean
-docs: $(MODREFS) docs/reference/index.html
+docs: docs/index.html docs/guide.html $(MODREFS) docs/reference/index.html
+
+docs/%.html: docs/%.md extra/docs.moon extra/layout.moon
+ @echo "building page $<"
+ moon extra/docs.moon $@ markdown $<
docs/reference/%.html: lib/%.moon extra/docs.moon extra/layout.moon
@echo "building docs for $<"
@@ -15,3 +19,4 @@ docs/reference/index.html: $(MODREFS) extra/docs.moon extra/layout.moon
clean:
rm -rf docs/reference/*
+ rm docs/index.html docs/guide.html