You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Linux, the above command installs `fpm` to `${HOME}/.local/bin/`.
27
+
For other platforms and architectures have a look at the [bootstrapping instructions](#bootstrapping-instructions).
66
28
67
29
### Creating a new project
68
30
@@ -88,7 +50,52 @@ with the following contents and initialized as a git repository.
88
50
The command `fpm run` can optionally accept the name of the specific executable
89
51
to run, as can `fpm test`; like `fpm run specific_executable`. Command line
90
52
arguments can also be passed to the executable(s) or test(s) with the option
91
-
`--args "some arguments"`.
53
+
`--some arguments`.
92
54
93
55
See additional instructions in the [Packaging guide](PACKAGING.md) or
94
56
the [manifest reference](manifest-reference.md).
57
+
58
+
59
+
### Bootstrapping instructions
60
+
61
+
This guide explains the process of building *fpm* on a platform for the first time.
62
+
If your platform and architecture are already supported, download the binary from the [release page](https://github.com/fortran-lang/fpm/releases) instead.
63
+
64
+
#### Download this repository
65
+
66
+
```bash
67
+
$ git clone https://github.com/fortran-lang/fpm
68
+
$ cd fpm/
69
+
```
70
+
71
+
#### Build a bootstrap version of fpm
72
+
73
+
You can use the install script to perform the build of the Haskell version of *fpm* with:
74
+
75
+
```bash
76
+
$ ./install.sh
77
+
```
78
+
79
+
On Linux, the above command installs `fpm` to `${HOME}/.local/bin/`.
80
+
81
+
Now you can build the Fortran *fpm* version with
82
+
83
+
```bash
84
+
$ cd fpm/
85
+
$ fpm build
86
+
```
87
+
88
+
Test that everything is working as expected
89
+
90
+
```bash
91
+
$ fpm test
92
+
```
93
+
94
+
Finally, install the Fortran *fpm* version with
95
+
96
+
```bash
97
+
$ fpm run --runner cp -- ~/.local/bin
98
+
```
99
+
100
+
Or choose another location if you do not want to overwrite the bootstrapping version.
101
+
From now on you can rebuild *fpm* with your Fortran *fpm* version.
0 commit comments