Salome HOME
Ensure cmake_build_type is used in SALOME 9.12.0
[tools/sat_salome.git] / products / patches / petsc-3.16-fd38-makeflags.patch
1 --- petsc-3.16.0-ref/makefile   2021-09-30 04:15:07.000000000 +0200
2 +++ petsc-3.16.0-dev/makefile   2023-12-20 12:02:30.248623882 +0100
3 @@ -50,7 +50,7 @@
4         @echo "Finishing make run at `date +'%a, %d %b %Y %H:%M:%S %z'`" >> ${PETSC_ARCH}/lib/petsc/conf/make.log
5         @if test -s ${PETSC_ARCH}/lib/petsc/conf/error.log; then exit 1; fi
6  
7 -all-local: info libs matlabbin petsc4py-build libmesh-build mfem-build slepc-build hpddm-build amrex-build bamg-build
8 +all-local: info print_before_fix fix_makeflags print_after_fix libs matlabbin petsc4py-build libmesh-build mfem-build slepc-build hpddm-build amrex-build bamg-build
9  
10  #
11  # Prints information about the system and version of PETSc being compiled
12 @@ -130,6 +130,20 @@
13         -@echo "=========================================="
14  
15  #
16 +#
17 +#
18 +fix_makeflags:
19 +       -@echo "Remove w option from MAKEFLAGS"
20 +       $(eval MAKEFLAGS:=$(filter-out w,$(MAKEFLAGS)))
21 +
22 +print_before_fix:
23 +       -@echo "Value of MAKEFLAGS (before):"
24 +       -@echo $(MAKEFLAGS)
25 +
26 +print_after_fix:
27 +       -@echo "Value of MAKEFLAGS (after):"
28 +       -@echo $(MAKEFLAGS)
29 +#
30  # Build MatLab binaries
31  #
32  matlabbin: