File tree 2 files changed +30
-6
lines changed
2 files changed +30
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
A prototype version.
4
4
5
- ## How to try it out
5
+ ## Getting started
6
6
7
7
### Install Haskell
8
8
9
- Install Haskell Stack from (https://haskellstack.org/ ). E.g., to install on
10
- Linux without root access, follow the [ manual download] ( https://docs.haskellstack.org/en/stable/install_and_upgrade/#manual-download_2 ) :
9
+ To install [ Haskell Stack] ( https://haskellstack.org/ ) on
10
+ Linux without root access, follow the [ manual download] ( https://docs.haskellstack.org/en/stable/install_and_upgrade/#manual-download_2 ) procedure :
11
11
```
12
12
wget https://get.haskellstack.org/stable/linux-x86_64-static.tar.gz
13
13
tar xaf linux-x86_64-static.tar.gz
14
14
```
15
- and put the ` stack ` binary in your path, for example by :
15
+ and put the ` stack ` binary in your path, for example:
16
16
```
17
17
export PATH="$PATH:`pwd`/stack-2.1.3-linux-x86_64-static/"
18
18
```
19
19
20
+ ### Download this repository
21
+
22
+ ```
23
+ git clone https://github.com/fortran-lang/fpm
24
+ cd fpm
25
+ ```
26
+
20
27
### Build and Test FPM
21
28
22
- Build using:
29
+ Build FPM using:
23
30
```
24
31
stack build
25
32
```
26
33
To test:
27
34
```
28
35
stack test
29
36
```
37
+ To install:
38
+ ```
39
+ stack install
40
+ ```
41
+
42
+ On Linux, the above command installs ` stack ` to ` ${HOME}/.local/bin ` .
43
+
44
+ ### Building your Fortran project with FPM
45
+
46
+ 1 . Copy ` example_fpm.toml ` from this repository
47
+ to the base directory of your Fortran project.
48
+ 2 . Rename it to ` fpm.toml ` .
49
+ 3 . Edit ` fpm.toml ` for your package.
50
+ 4 . Type ` fpm build ` .
51
+ 5 . (optional) If you have tests, type ` fpm test ` .
52
+ 6 . (optional) If your package is an executable program,
53
+ run it by typing ` fpm run ` .
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ library:
36
36
source-dirs : src
37
37
38
38
executables :
39
- fpm-exe :
39
+ fpm :
40
40
main : Main.hs
41
41
source-dirs : app
42
42
ghc-options :
You can’t perform that action at this time.
0 commit comments