[petsc-dev] Cleaning with gnumake
Jed Brown
jedbrown at mcs.anl.gov
Tue Oct 22 10:37:50 CDT 2013
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. It's a shame we can't use GNU Make syntax in the
legacy part...
> -------
>
> $ 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
-------------- 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/b28861f6/attachment.sig>
More information about the petsc-dev
mailing list