-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
109 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
NAME | ||
opam-compiler-install - Run make install | ||
|
||
SYNOPSIS | ||
opam-compiler install [OPTION]... | ||
|
||
OPTIONS | ||
--dry-run | ||
Do not perform external commands. Print them and continue as if | ||
they worked. | ||
|
||
--help[=FMT] (default=auto) | ||
Show this help in format FMT. The value FMT must be one of `auto', | ||
`pager', `groff' or `plain'. With `auto', the format is `pager` or | ||
`plain' whenever the TERM env var is `dumb' or undefined. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
$ opam-compiler install --dry-run | ||
Run: grep -q -e prefix=.*_opam -e prefix=.*\.opam Makefile.config | ||
Run: make install | ||
|
||
"install" checks for a Makefile.config file. | ||
If it does not exist, it prints an error: | ||
|
||
$ cat > Makefile <<EOF | ||
> .PHONY: install | ||
> install: | ||
> @echo installed | ||
> EOF | ||
|
||
$ opam-compiler install | ||
grep: Makefile.config: No such file or directory | ||
Fatal error: exception Failure("Could not install - configure step is required") | ||
[2] | ||
|
||
If it exists, it is inspected. The prefix is expected to point at an opam | ||
switch. | ||
|
||
Global switches are recognized: | ||
|
||
$ echo 'prefix=/home/me/.opam/name' > Makefile.config | ||
$ opam-compiler install | ||
installed | ||
|
||
Local switches are recognized: | ||
|
||
$ echo 'prefix=/home/me/src/project/_opam' > Makefile.config | ||
$ opam-compiler install | ||
installed | ||
|
||
If prefix is something else, an error message is displayed: | ||
|
||
$ echo 'prefix=/usr/local/lib' > Makefile.config | ||
$ opam-compiler install | ||
Fatal error: exception Failure("Could not install - configure step is required") | ||
[2] |