Skip to content

Commit 5b709b4

Browse files
authored
Correct parameter name in MacOS install script (#325)
* Fix: Correct last parameter name in script * Doc: Format install part and correct few typos
1 parent f04be1e commit 5b709b4

File tree

2 files changed

+28
-20
lines changed

2 files changed

+28
-20
lines changed

bin/compile-version-MacOS

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ make install
131131
)
132132
test -f $prefix/bin/h5c++ || (
133133
cd hdf5-$VERSION_HDF5
134-
./configure '--enable-cxx' 'CC=clang' 'CXX=clang++' --prefix=$prefix $addconfig
134+
./configure '--enable-cxx' 'CC=clang' 'CXX=clang++' --prefix=$prefix $addconf
135135
make -j $njob
136136
make install
137137
)
138138

139139
#test -f $prefix/lib/pkgconfig/mpich.pc || (
140140
#cd mpich-$VERSION_MPI
141-
#./configure --prefix=$prefix "FFLAGS=-fallow-argument-mismatch -L$prefix/gnu -lgfortran -lquadmath" 'CC=clang' 'CXX=clang++' $addconfig
141+
#./configure --prefix=$prefix "FFLAGS=-fallow-argument-mismatch -L$prefix/gnu -lgfortran -lquadmath" 'CC=clang' 'CXX=clang++' $addconf
142142
#make -j $njob
143143
#make install
144144
#)
@@ -154,7 +154,7 @@ echo2 ================================
154154
export PATH=$prefix/bin:$PATH
155155
#autoreconf -i
156156
tar zxvf AutoGeneratedFile.tar.gz
157-
./configure "--prefix=$prefix" '--enable-download' $optionconf '--enable-m64' 'CXXFLAGS=-Wno-undefined-var-template' "FLIBS=-L$prefix/gnu -lgfortran -lquadmath -Wl,-ld_classic" $addconfig
157+
./configure "--prefix=$prefix" '--enable-download' $optionconf '--enable-m64' 'CXXFLAGS=-Wno-undefined-var-template' "FLIBS=-L$prefix/gnu -lgfortran -lquadmath -Wl,-ld_classic" $addconf
158158
echo2 ================================
159159
echo2 compilation de petc
160160
echo2 ================================

readme/README_MAC.md

+25-17
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,36 @@
2121

2222
## Sep 2023
2323

24-
the mac version is compile wit the script
25-
bin/compile-version-MacOS gitbranch path-where-to-compile configure-parameter
26-
27-
configure-parameter compilation:
28-
generic for --enable-genenic
29-
debug for --enable-debug
30-
optim for --enable-optim
24+
The mac version is compiled with the script:
25+
26+
``` bash
27+
bin/compile-version-MacOS gitbranch path-where-to-compile configure-parameter
28+
```
29+
30+
`configure-parameter` can take the following values:
31+
32+
+ generic for --enable-generic
33+
+ debug for --enable-debug
34+
+ optim for --enable-optim
3135

32-
and exact :
33-
bin/compile-version-MacOS master $HOME/tmp generic
36+
and exact:
37+
```bash
38+
bin/compile-version-MacOS master $HOME/tmp generic
39+
```
40+
3441
## Feb 2022
3542

36-
The Version 4.10 is compiled Under Monteray (Apple M1: arm64e) and on (Apple : x86 )
43+
The Version 4.10 is compiled Under Monteray (Apple M1: arm64e) and on (Apple : x86)
3744

3845
### for Apple M1 (arm64e)
3946

40-
Add with home brew
41-
1. install brew see
42-
[install Homebrew]{https://brew.sh/index_fr}
47+
Add with Homebrew
48+
49+
1. Install Homebrew
50+
51+
See [install Homebrew](https://brew.sh/index_fr)
4352

44-
45-
2. install this brew package to compile FreeFEM++
53+
2. Install these brew packages to compile FreeFEM++
4654

4755
```bash
4856
brew install \
@@ -64,7 +72,7 @@ gd isl libunistring [email protected] zip \
6472
gdbm jansson libvmaf p11-kit zstd
6573
```
6674

67-
3. download the sources of FreeFEM++ with git
75+
3. Download the sources of FreeFEM++ with git
6876

6977
```bash
7078
git clone [email protected]:FreeFem/FreeFem-sources.git ff++
@@ -74,7 +82,7 @@ or the develop version
7482
```bash
7583
git clone -b develop [email protected]:FreeFem/FreeFem-sources.git ff++
7684
```
77-
4. Compile FreeFem++ without petsc and MPI
85+
4. Compile FreeFem++ without PETSc and MPI
7886

7987
```bash
8088
cd ff++

0 commit comments

Comments
 (0)