Skip to content

Commit 6c5ecec

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2570 from johnnonweiler/doc-git-submodule-update
Document git submodule update in COMPILING.md
2 parents 2af8433 + aad1692 commit 6c5ecec

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

COMPILING.md

+12-8
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
6666

6767
5. To compile JBMC, do
6868
```
69-
make -C jbmc/src java-models-library-download
69+
make -C jbmc/src setup-submodules
7070
make -C jbmc/src
7171
```
7272

@@ -92,7 +92,7 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
9292
```
9393
4. To compile JBMC, type
9494
```
95-
gmake -C jbmc/src java-models-library-download
95+
gmake -C jbmc/src setup-submodules
9696
gmake -C jbmc/src
9797
```
9898

@@ -118,7 +118,7 @@ We assume that you have a Debian/Ubuntu or Red Hat-like distribution.
118118
```
119119
4. To compile JBMC, do
120120
```
121-
gmake -C jbmc/src java-models-library-download
121+
gmake -C jbmc/src setup-submodules
122122
gmake -C jbmc/src
123123
```
124124

@@ -144,7 +144,7 @@ Follow these instructions:
144144
```
145145
4. To compile JBMC, do
146146
```
147-
make -C jbmc/src java-models-library-download
147+
make -C jbmc/src setup-submodules
148148
make -C jbmc/src
149149
```
150150

@@ -185,9 +185,9 @@ Follow these instructions:
185185
make -C src DOWNLOADER=wget minisat2-download
186186
make -C src
187187
```
188-
5. To compile JMBC, open the Cygwin shell and type
188+
5. To compile JBMC, open the Cygwin shell and type
189189
```
190-
make -C jbmc/src java-models-library-download
190+
make -C jbmc/src setup-submodules
191191
make -C jbmc/src
192192
```
193193
@@ -240,7 +240,11 @@ require manual modification of build files.
240240
2. Navigate to the *top level* folder of the project. This is different from
241241
the Makefile build, which requires you to navigate to the `src` directory
242242
first.
243-
3. Generate build files with CMake:
243+
3. Update git submodules:
244+
```
245+
git submodule update --init
246+
```
247+
4. Generate build files with CMake:
244248
```
245249
cmake -H. -Bbuild
246250
```
@@ -264,7 +268,7 @@ require manual modification of build files.
264268
Finally, to enable building universal binaries on macOS, you can pass the
265269
flag `-DCMAKE_OSX_ARCHITECTURES=i386;x86_64`. If you don't supply this flag,
266270
the build will just be for the architecture of your machine.
267-
4. Run the build:
271+
5. Run the build:
268272
```
269273
cmake --build build
270274
```

jbmc/README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,16 @@ JBMC compiles CBMC as part of its build process and as such has all the pre-requ
2727
Compilation
2828
===========
2929

30-
To compile you need to run the command:
30+
Before compilation, run the commands:
31+
32+
```bash
33+
make -C src DOWNLOADER=wget minisat2-download
34+
make -C jbmc/src setup-submodules
35+
```
36+
37+
Then compile using:
3138

3239
```bash
33-
make -C jbmc/src java-models-library-download
3440
make -C jbmc/src
3541
```
3642

jbmc/src/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ dist_clean:
5555
rm -rf $(ROOT)dist
5656

5757
setup-submodules:
58-
git submodule update --init --recursive
58+
git submodule update --init
5959

6060
.PHONY: dist
6161
dist: setup-submodules all

0 commit comments

Comments
 (0)