aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBrad Richardson <everythingfunctional@protonmail.com>2020-06-30 20:18:22 -0700
committerGitHub <noreply@github.com>2020-06-30 20:18:22 -0700
commit572bd33f918f3d5ce48ee482cf90ce49c6888199 (patch)
treef3334303e0fc47a04a51ef4dcf4b14686c487b55 /README.md
parent4fba19ef3607d833eb4eeaa5c92f71feb2d84d24 (diff)
parente4fa1691fa162c4f498a94fc1360666f6ef41be0 (diff)
downloadfpm-572bd33f918f3d5ce48ee482cf90ce49c6888199.tar.gz
fpm-572bd33f918f3d5ce48ee482cf90ce49c6888199.zip
Merge pull request #102 from everythingfunctional/CreateNewCommand
Enable fpm to create a new package
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 58a92c1..6aac019 100644
--- a/README.md
+++ b/README.md
@@ -43,6 +43,19 @@ stack install
On Linux, the above command installs `fpm` to `${HOME}/.local/bin`.
+### Creating a new project
+
+Creating a new fpm project is as simple as running the command `fpm new project_name`.
+This will create a new folder in your current directory with the following contents
+and initialized as a git repository.
+
+* `fpm.toml` with your project's name and some default standard meta-data
+* `README.md` with your project's name
+* `.gitgnore`
+* `src/project_name.f90` with a simple hello world subroutine
+* `app/main.f90` (if `--with-executable` flag used) a program that calls the subroutine
+* `test/main.f90` (if `--with-test` flag used) an empty test program
+
### Building your Fortran project with fpm
fpm understands the basic commands: