[petsc-dev] Cleaning with gnumake
Jed Brown
jedbrown at mcs.anl.gov
Tue Oct 22 10:31:41 CDT 2013
Satish Balay <balay at mcs.anl.gov> writes:
> diff --git a/makefile b/makefile
> index a83e810..65c5026 100644
> --- a/makefile
> +++ b/makefile
> @@ -216,8 +216,17 @@ 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:
> + @if [ "${MAKE_IS_GNUMAKE}" != "" ]; then \
> + ${OMAKE} -f gmakefile clean; \
> + elif [ "${PETSC_BUILD_USING_CMAKE}" != "" ]; then \
> + ${OMAKE} -f ${PETSC_ARCH}/Makefile clean; \
This looks like it will have the wrong working directory. Better to run
make from that directory.
Looks fine otherwise.
> + else \
> + ${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} allclean-legacy; \
> + fi
> #
> reconfigure:
> @${PYTHON} ${PETSC_ARCH}/conf/reconfigure-${PETSC_ARCH}.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131022/121e821e/attachment.sig>
More information about the petsc-dev
mailing list