From 406da94f13f47a9c7aef6b9c11cfe057772630cf Mon Sep 17 00:00:00 2001 From: s-ol Date: Sun, 17 May 2020 17:41:56 +0200 Subject: split guide into multiple pages --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c2e5d6a..3c2820e 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,12 @@ DEPS=alv/version.moon $(wildcard docs/gen/*.moon) .PHONY: docs test release clean reference internals -docs: docs/index.html docs/guide.html reference internals - +GUIDE = getting-started-guide installation hello-world syntax +GUIDE += working-with-the-copilot basic-types importing-operators defining-symbols +GUIDE += scopes functions evaltime-and-runtime making-sound +GUIDE := $(addprefix docs/guide/,$(addsuffix .md,$(GUIDE))) +docs: docs/index.html $(GUIDE:%.md=%.html) reference internals + test: busted @@ -14,6 +18,10 @@ test: reference: $(MODREFS) docs/reference/index.html internals: docs/internals/index.html +docs/guide/%.html: docs/guide/%.md $(DEPS) $(GUIDE) + @echo "building page $<" + docs/gen/md $@ $< $(GUIDE:%.md=%.html) + docs/%.html: docs/%.md $(DEPS) @echo "building page $<" docs/gen/md $@ $< @@ -35,4 +43,4 @@ docs/internals/index.html: alv/config.ld docs/ldoc.ltp $(CORE) clean: rm -rf docs/reference rm -rf docs/internals/*/ docs/internals/*.css docs/internals/*.html - rm -f docs/index.html docs/guide.html docs/ldoc.* + rm -f docs/index.html $(GUIDE:%.md=%.html) docs/ldoc.* -- cgit v1.2.3