-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from anton-trunov/dune
Switch the build system to Dune
- Loading branch information
Showing
10 changed files
with
33 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*~ | ||
*.swp | ||
*.annot | ||
*.cmo | ||
*.cma | ||
|
@@ -9,5 +10,6 @@ | |
*.cmxs | ||
*.cmxa | ||
*.native | ||
*.merlin | ||
_build/ | ||
smartPrint.docdir |
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 |
---|---|---|
@@ -1,18 +1,17 @@ | ||
default: | ||
ocamlbuild smartPrintLib.cma smartPrintLib.cmxa | ||
dune build --profile release | ||
|
||
install: default | ||
ocamlfind install smart_print META _build/smartPrint.cmi _build/smartPrint.cmx _build/smartPrintLib.a _build/smartPrintLib.cma _build/smartPrintLib.cmxa _build/smartPrintLib.mllib | ||
dune install | ||
|
||
uninstall: | ||
ocamlfind remove smart_print | ||
dune uninstall | ||
|
||
clean: | ||
ocamlbuild -clean | ||
dune clean | ||
|
||
doc: | ||
ocamlbuild smartPrint.docdir/index.html | ||
dune build @doc --profile release | ||
|
||
test: default | ||
ocamlbuild test.native | ||
./test.native |diff -s - test.out | ||
test: | ||
dune runtest --profile release |
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,15 @@ | ||
(library | ||
(name smart_print) | ||
(wrapped false) | ||
(public_name smart-print) | ||
(modules smartPrint) | ||
(synopsis "SmartPrint pretty-printing library")) | ||
|
||
(deprecated_library_name | ||
(old_public_name smart_print) | ||
(new_public_name smart-print)) | ||
|
||
(test | ||
(name test) | ||
(libraries smart_print) | ||
(modules test)) |
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,4 @@ | ||
(lang dune 2.0) | ||
(package | ||
(name smart-print) | ||
(deprecated_package_names smart_print)) |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.