Currently make serve can end up building the book as many as three
times before serving (depending on if dependencies are installed).
This commit removes the postinstall hook call to make book and
also changes make serve to no longer depend on make book. Instead
make serve will now rely on $(GITBOOK_DEPS) to ensure dependencies
are installed and rely on gitbook serve to do the build.
AFAICT all functionality is maintained and the compilation time for
first run is significantly improved.
Currently
make serve
can end up building the book as many as three times before serving (depending on if dependencies are installed).This commit removes the
postinstall
hook call tomake book
and also changesmake serve
to no longer depend onmake book
. Insteadmake serve
will now rely on$(GITBOOK_DEPS)
to ensure dependencies are installed and rely ongitbook serve
to do the build.AFAICT all functionality is maintained and the compilation time for first run is significantly improved.