X-Git-Url: http://nitlanguage.org diff --git a/Makefile b/Makefile index 909fbde..0397545 100644 --- a/Makefile +++ b/Makefile @@ -16,54 +16,70 @@ 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)) + +all: tools man + @echo "" + @echo "Congratulations! Nit was succesfully compiled." + @echo "To configure your shell environment, execute the following command:" + @echo " source misc/nit_env.sh install" + +# 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/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 +bin/nitdoc: + cd src; make ../bin/nitdoc -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 +bin/nitls: + cd src; make ../bin/nitls -doc/stdlib/index.html: bin/nitdoc +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 --overview-text '
Documentation for the standard library of Nit
' --footer-text 'Nit standard library. Version '`git describe -- lib`'.' + bin/nitdoc lib -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
' --footer-text 'Nit compiler. Version '`git describe`'.' +doc/nitc/index.html: bin/nitdoc bin/nitls + bin/nitdoc lib 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)