aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Ehlert <28669218+awvwgk@users.noreply.github.com>2020-12-06 14:29:56 +0100
committerSebastian Ehlert <28669218+awvwgk@users.noreply.github.com>2020-12-10 18:47:51 +0100
commit547805f21a5b9022eb7611e904319dec0eb48795 (patch)
tree8e00443676cd18c504df58fdd9fbd9da23a9e79e
parent8d7c5e8313fe348a4682af5877ca570ebd030343 (diff)
downloadfpm-547805f21a5b9022eb7611e904319dec0eb48795.tar.gz
fpm-547805f21a5b9022eb7611e904319dec0eb48795.zip
Add fpm-install to fpm --list output
- update documentation to include default settings
-rw-r--r--fpm/src/fpm_command_line.f9028
1 files changed, 23 insertions, 5 deletions
diff --git a/fpm/src/fpm_command_line.f90 b/fpm/src/fpm_command_line.f90
index af96fd9..a98f2c2 100644
--- a/fpm/src/fpm_command_line.f90
+++ b/fpm/src/fpm_command_line.f90
@@ -480,6 +480,7 @@ contains
' [--compiler COMPILER_NAME] [-- ARGS] ', &
' test [[--target] NAME(s)] [--release] [--runner "CMD"] [--list] ', &
' [--compiler COMPILER_NAME] [-- ARGS] ', &
+ ' install [--release] [--no-rebuild] [--prefix PATH] [options] ', &
' ']
help_usage=[character(len=80) :: &
'' ]
@@ -926,20 +927,37 @@ contains
' [--verbose]', &
'', &
'DESCRIPTION', &
- ' Subcommand to install fpm projects.', &
+ ' Subcommand to install fpm projects. Running install will export the', &
+ ' current project to the selected prefix, this will by default install all', &
+ ' executables (test are excluded) which are part of the projects.', &
+ ' Libraries and module files are only installed for projects requiring the', &
+ ' installation of those components in the package manifest.', &
'', &
'OPTIONS', &
' --release selects the optimized build instead of the debug build', &
' --no-rebuild do not rebuild project before installation', &
- ' --prefix DIR path to installation directory (requires write access)', &
- ' --bindir DIR subdirectory to place executables in', &
+ ' --prefix DIR path to installation directory (requires write access),', &
+ ' the default prefix on Unix systems is $HOME/.local', &
+ ' and %APPDATA%\local on Windows', &
+ ' --bindir DIR subdirectory to place executables in (default: bin)', &
' --libdir DIR subdirectory to place libraries and archives in', &
+ ' (default: lib)', &
' --includedir DIR subdirectory to place headers and module files in', &
+ ' (default: include)', &
' --verbose print more information', &
'', &
'EXAMPLES', &
- ' Install release version of project:', &
- ' fpm install --release --prefix ~/.local', &
+ ' 1. Install release version of project:', &
+ '', &
+ ' fpm install --release', &
+ '', &
+ ' 2. Install the project without rebuilding the executables:', &
+ '', &
+ ' fpm install --no-rebuild', &
+ '', &
+ ' 3. Install executables to a custom prefix into the exe directory:', &
+ '', &
+ ' fpm install --prefix $PWD --bindir exe', &
'' ]
end subroutine set_help