diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-05-17 15:41:56 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:24:49 +0000 |
| commit | 406da94f13f47a9c7aef6b9c11cfe057772630cf (patch) | |
| tree | dd98e12eddd421e2883c90239cb10225bb75b07e /Makefile | |
| parent | builtin/trae: print literals literally (diff) | |
| download | alive-406da94f13f47a9c7aef6b9c11cfe057772630cf.tar.gz alive-406da94f13f47a9c7aef6b9c11cfe057772630cf.zip | |
split guide into multiple pages
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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.* |
