[petsc-dev] Cleaning with gnumake

Satish Balay balay at mcs.anl.gov
Tue Oct 22 10:44:18 CDT 2013


On Tue, 22 Oct 2013, Jed Brown wrote:

> Satish Balay <balay at mcs.anl.gov> writes:
> 
> > this should work for all cases.. [assuming 'clean' is the appropriate
> > cmake target aswell]
> 
> Yup, looks fine to me.

pushed to jed/gmake

> It's a shame we can't use GNU Make syntax in the legacy part...

:) thats what legacy is for..

Also I should flip OMAKE/OMAKE_NOPRINTDIR to OMAKE_NOPRINTDIR/OMAKE

[will do now]

Satish

> 
> > -------
> >
> > $ git diff
> > diff --git a/makefile b/makefile
> > index a83e810..97e674b 100644
> > --- a/makefile
> > +++ b/makefile
> > @@ -216,8 +216,21 @@ deletemods: chk_makej
> >         -${RM} -f ${PETSC_DIR}/${PETSC_ARCH}/include/petsc*.mod
> >  
> >  # Cleans up build
> > -allclean: deletelibs deletemods
> > +allclean-legacy: deletelibs deletemods
> >         -@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} ACTION=clean tree
> > +allclean-cmake:
> > +       - at cd ${PETSC_ARCH} && ${OMAKE} clean
> > +allclean-gnumake:
> > +       -@${OMAKE} -f gmakefile clean
> > +
> > +allclean:
> > +       @if [ "${MAKE_IS_GNUMAKE}" != "" ]; then \
> > +          ${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} allclean-gnumake; \
> > +       elif [ "${PETSC_BUILD_USING_CMAKE}" != "" ]; then \
> > +          ${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} allclean-cmake; \
> > +       else \
> > +          ${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} allclean-legacy; \
> > +       fi
> >  #
> >  reconfigure:
> >         @${PYTHON} ${PETSC_ARCH}/conf/reconfigure-${PETSC_ARCH}.py
> 




More information about the petsc-dev mailing list