Skip to content
Snippets Groups Projects
Commit fc82a402 authored by erwan's avatar erwan
Browse files

Build: set-up opam packages

parent c599dc14
No related branches found
No related tags found
No related merge requests found
Pipeline #28435 failed
all:build
PREFIX=$(shell opam config var prefix)
-include ./Makefile.version
build: lib/lutilsVersion.ml
dune build @install
......
......@@ -6,13 +6,6 @@ uv:update_version
update_version:
git pull # to get the release tags!
rm -f src/lutilsVersion.ml
make src/lutilsVersion.ml
cp _oasis _oasis.save
ifneq (,$(findstring -,$(VERSION)))
echo "won't update _oasis"
else
cat _oasis.save | sed "s/^Version:.*/Version: $(VERSION)/" > _oasis
endif
make clean && make
cia: test
......
(lang dune 1.2)
......@@ -17,21 +17,18 @@ bug-reports:
"https://gricad-gitlab.univ-grenoble-alpes.fr/verimag/synchrone/lutils/"
depends: [
"ocaml" {>= "4.02"}
"dune" {>= "1.2"}
"base-unix"
"ocamlbuild" {build}
"ocamlfind"
"num"
"str"
]
build: [
["ocaml" "setup.ml" "-configure" "--prefix" prefix]
["ocaml" "setup.ml" "-build"]
["ocaml" "setup.ml" "-configure" "--enable-tests"] {with-test}
["ocaml" "setup.ml" "-build"] {with-test}
["ocaml" "setup.ml" "-test"] {with-test}
[make "build"]
]
install: ["ocaml" "setup.ml" "-install"]
install: [make "install"]
remove: [
"ocaml" "%{etc}%/lutils/setup.ml" "-C" "%{etc}%/lutils" "-uninstall"
[make "uninstall"]
]
post-messages:
"The last version can be obtained via (opam repo add) http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/opam-repository/"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment