PETSc build system (on linux)

Matthew Knepley knepley at
Wed Oct 1 14:40:08 CDT 2008

At the top level, there are no dependencies, it just remakes everything.
If you want to remake a specific directory

  cd dir; make

or a subtree

  cd rootdir; make tree

If you want to rebuild everything in that subtree

  cd rootdir; make ACTION=libfast tree


On Wed, Oct 1, 2008 at 2:36 PM, Victor Prosolin <flyaway1212 at> wrote:
> Hi.
> This question is probably more suited for developers rather than users,
> but I hope the developers read this as well.
> I have been learning PETSc for the last several months because it's used
> in another project I am working on. Since I am just learning I rebuild
> the library quite often so I have a question about the build system. If
> generates makefiles why does it rebuild the whole thing
> every time I type "make" even if I didn't make any changes in
> configuration?
> Sincerely,
> Victor Prosolin.
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which
their experiments lead.
-- Norbert Wiener

More information about the petsc-users mailing list