tools: make performs the boostrap in src
authorJean Privat <jean@pryen.org>
Fri, 25 Nov 2011 16:17:52 +0000 (11:17 -0500)
committerJean Privat <jean@pryen.org>
Fri, 25 Nov 2011 16:17:52 +0000 (11:17 -0500)
Since src/nc does the same job that the rule bin/nitc in the Makefile,
it is a good idea to share the same .nit_compile and ccache results.

Signed-off-by: Jean Privat <jean@pryen.org>

Makefile

index fa95668..d96989b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,14 +23,14 @@ bin/nitc: c_src/nitc src/parser/parser.nit
        @echo '* Compile nitc from NIT source files                          *'
        @echo '***************************************************************'
        src/git-gen-version.sh
-       c_src/nitc ${NITCOPT} --clibdir c_src/clib -o bin/nitc -O -v src/nitc.nit
+       cd src; ../c_src/nitc ${NITCOPT} --clibdir ../c_src/clib -o ../bin/nitc -O -v nitc.nit
 
 bin/nitdoc: bin/nitc
        @echo '***************************************************************'
        @echo '* Compile nitdoc from NIT source files                        *'
        @echo '***************************************************************'
        src/git-gen-version.sh
-       bin/nitc ${NITCOPT} -o bin/nitdoc -O -v src/nitdoc.nit
+       cd src; ../bin/nitc ${NITCOPT} -o ../bin/nitdoc -O -v nitdoc.nit
 
 doc/stdlib/index.html: bin/nitdoc
        @echo '***************************************************************'