Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,38 +20,44 @@ Installation

To build and install Lambda-Term:

$ make
$ make install
$ dune build
$ dune install

### Documentation and manual pages _(optional)_
Note that this will build Lambda-Term using the development build
profile which has strict compilation flags. If the build fails, try
passing `--profile=release` to `dune` or alternatively create a
`dune-workspace` file with the following contents:

_This part hasn't been ported to jbuilder yet_
(lang dune 1.1)
(profile release)

### HTML API Documentation _(optional)_

To build the documentation:

$ make doc
$ dune build @doc

It will then be installed by `make install`.
You can then consult it by openning
`_build/default/_doc/_html/index.html`.

### Tests _(optional)_

To build and execute tests:

$ make test
$ dune runtest

### Examples _(optional)_

To build examples:
To build the examples:

$ make examples
$ dune build @examples

Binaries for the examples will be in `_build/default/examples`.

To build the `asciiart` example:

$ make asciiart
The `asciiart` example is not built by default as it as an additional
dependency on the `camlimages` library. To build it run:

Note that it requires the `camlimages` library.
$ dune build examples/asciiart/asciiart.exe

Terminal emulators compatibility
--------------------------------
Expand Down
4 changes: 4 additions & 0 deletions dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
(install
(section share_root)
(files lambda-term-inputrc lambda-termrc))

(alias
(name examples)
(deps (alias examples/all)))
5 changes: 5 additions & 0 deletions examples/asciiart/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(executable
(name asciiart)
(libraries lambda-term
camlimages.png
camlimages.jpeg))
7 changes: 0 additions & 7 deletions examples/asciiart/jbuild

This file was deleted.

31 changes: 31 additions & 0 deletions examples/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
(executables
(names double_editor
events
colors
colors_256
rgb
move
hello
clock
buttons
focus
scroll
scroll_debug
checkbuttons
radiobuttons
shell
repl
modal
read_password
read_yes_no
editor)
(libraries lambda-term str)
(flags :standard -safe-string))

(alias
(name all)
(deps (glob_files *.exe)))

(alias
(name all.bc)
(deps (glob_files *.bc)))
33 changes: 0 additions & 33 deletions examples/jbuild

This file was deleted.

4 changes: 4 additions & 0 deletions man/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(install
(section man)
(files lambda-term-actions.1
lambda-term-inputrc.5))
6 changes: 0 additions & 6 deletions man/jbuild

This file was deleted.

3 changes: 3 additions & 0 deletions tests/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(executable
(name history_stress_test)
(libraries lambda-term))
5 changes: 0 additions & 5 deletions tests/jbuild

This file was deleted.

5 changes: 5 additions & 0 deletions tools/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(executable
(name lambda_term_actions)
(flags :standard -safe-string)
(public_name lambda-term-actions)
(libraries lambda-term))
7 changes: 0 additions & 7 deletions tools/jbuild

This file was deleted.