diff options
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.* |
