X-Git-Url: http://nitlanguage.org?ds=inline diff --git a/Makefile b/Makefile index c50281f..326d49b 100644 --- a/Makefile +++ b/Makefile @@ -16,48 +16,67 @@ NITCOPT= -all: bin/nitc bin/nitdoc doc/stdlib/index.html +# Additional program directories (contrib and examples) that are buildable +PROGS=$(dir $(wildcard examples/*/Makefile contrib/*/Makefile)) -bin/nitc: c_src/nitc src/parser/parser.nit - @echo '***************************************************************' - @echo '* Compile nitc from NIT source files *' - @echo '***************************************************************' - src/git-gen-version.sh - cd src; ../c_src/nitc ${NITCOPT} --clibdir ../c_src/clib -o ../bin/nitc -O -v nitc.nit +all: tools -bin/nitdoc: bin/nitc - @echo '***************************************************************' - @echo '* Compile nitdoc from NIT source files *' - @echo '***************************************************************' - src/git-gen-version.sh - cd src; ../bin/nitc ${NITCOPT} -o ../bin/nitdoc -O -v nitdoc.nit +# Compile all programs in $PROGS +full: all + for m in $(PROGS); do $(MAKE) -C "$$m" || exit 1; done + +docs: doc/stdlib/index.html doc/nitc/index.html + +tools: + cd src; make + +bin/nitdoc: + cd src; make ../bin/nitdoc -doc/stdlib/index.html: bin/nitdoc +bin/nitls: + cd src; make ../bin/nitls + +doc/stdlib/index.html: bin/nitdoc bin/nitls @echo '***************************************************************' @echo '* Generate doc for NIT standard library *' @echo '***************************************************************' - bin/nitdoc lib/*.nit -d doc/stdlib --public + bin/nitdoc $$(bin/nitls lib -rs --path) -d doc/stdlib \ + --custom-title "Nit Standard Library" \ + --custom-brand "Nitlanguage.org" \ + --custom-overview-text "
Documentation for the standard library of Nit
Version $$(git describe)
Date: $$(git show --format="%cd" | head -1)
Documentation for the Nit tools
Version $$(git describe)
Date: $$(git show --format="%cd" | head -1)