X-Git-Url: http://nitlanguage.org diff --git a/Makefile b/Makefile index 5bbf5d4..636e0ce 100644 --- a/Makefile +++ b/Makefile @@ -16,33 +16,63 @@ NITCOPT= -all: tools doc/stdlib/index.html +# Additional program directories (contrib and examples) that are buildable +PROGS=$(dir $(wildcard examples/*/Makefile contrib/*/Makefile)) + +all: tools + +# 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 - cd doc; make tools: cd src; make -doc/stdlib/index.html: tools +bin/nitdoc: + cd src; make ../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 --custom-overview-text '
Documentation for the standard library of Nit
' --custom-footer-text 'Nit standard library. Version '`git describe -- lib`'.' + 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 compiler
' --custom-footer-text 'Nit compiler. Version '`git describe`'.' +doc/nitc/index.html: bin/nitdoc bin/nitls + bin/nitdoc $$(bin/nitls lib -rs --path) src/nit*.nit src/test_*.nit -d doc/nitc \ + --private \ + --custom-title "Nit Compilers and Tools" \ + --custom-brand "Nitlanguage.org" \ + --custom-overview-text "Documentation for the Nit tools
Version $$(git describe)
Date: $$(git show --format="%cd" | head -1)