Skip to content

Commit

Permalink
Use oasis-generate devfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjun Guha committed Feb 2, 2015
1 parent a982f64 commit d4d6867
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 24 deletions.
51 changes: 32 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,28 +1,41 @@
all: build
# OASIS_START
# DO NOT EDIT (digest: a3c674b4239234cbbe53afe090018954)

TESTS=--enable-tests
NAME=topology
J=4
SETUP = ocaml setup.ml

setup.ml: _oasis
oasis setup
build: setup.data
$(SETUP) -build $(BUILDFLAGS)

setup.data: setup.ml
ocaml setup.ml -configure $(TESTS)
doc: setup.data build
$(SETUP) -doc $(DOCFLAGS)

build: setup.data setup.ml
ocaml setup.ml -build -j $(J)
test: setup.data build
$(SETUP) -test $(TESTFLAGS)

install: setup.data setup.ml
ocaml setup.ml -install
all:
$(SETUP) -all $(ALLFLAGS)

test: setup.ml build
_build/test/Test.byte inline-test-runner topology
install: setup.data
$(SETUP) -install $(INSTALLFLAGS)

reinstall: setup.ml
ocamlfind remove $(NAME) || true
ocaml setup.ml -reinstall
uninstall: setup.data
$(SETUP) -uninstall $(UNINSTALLFLAGS)

reinstall: setup.data
$(SETUP) -reinstall $(REINSTALLFLAGS)

clean:
ocamlbuild -clean
rm -f setup.data setup.log
$(SETUP) -clean $(CLEANFLAGS)

distclean:
$(SETUP) -distclean $(DISTCLEANFLAGS)

setup.data:
$(SETUP) -configure $(CONFIGUREFLAGS)

configure:
$(SETUP) -configure $(CONFIGUREFLAGS)

.PHONY: build doc test all install uninstall reinstall clean distclean configure

# OASIS_STOP
2 changes: 1 addition & 1 deletion _oasis
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Version: 0.4.0
Synopsis: Network topologies
Authors: https://github.com/frenetic-lang/ocaml-topology/contributors
License: LGPL
Plugins: META (0.3)
Plugins: META (0.3), DevFiles (0.3)
BuildTools:
ocamlbuild

Expand Down
27 changes: 27 additions & 0 deletions configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh

# OASIS_START
# DO NOT EDIT (digest: dc86c2ad450f91ca10c931b6045d0499)
set -e

FST=true
for i in "$@"; do
if $FST; then
set --
FST=false
fi

case $i in
--*=*)
ARG=${i%%=*}
VAL=${i##*=}
set -- "$@" "$ARG" "$VAL"
;;
*)
set -- "$@" "$i"
;;
esac
done

ocaml setup.ml -configure "$@"
# OASIS_STOP
9 changes: 5 additions & 4 deletions setup.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(* setup.ml generated for the first time by OASIS v0.3.0 *)

(* OASIS_START *)
(* DO NOT EDIT (digest: 3ffa8249749ae02d27b3da4c85b43a07) *)
(* DO NOT EDIT (digest: 1ac90d70219f40536984da295331041e) *)
(*
Regenerated by OASIS v0.4.5
Visit http://oasis.forge.ocamlcore.org for more information and
Expand Down Expand Up @@ -7043,21 +7043,22 @@ let setup_t =
test_tools = [ExternalTool "ocamlbuild"]
})
];
plugins = [(`Extra, "META", Some "0.3")];
plugins =
[(`Extra, "META", Some "0.3"); (`Extra, "DevFiles", Some "0.3")];
disable_oasis_section = [];
schema_data = PropList.Data.create ();
plugin_data = []
};
oasis_fn = Some "_oasis";
oasis_version = "0.4.5";
oasis_digest = Some "ã8D\130Öòii\138:eüK\015h\131";
oasis_digest = Some "Í9X\134c.5Vw\000\145\020i7¾Æ";
oasis_exec = None;
oasis_setup_args = [];
setup_update = false
};;

let setup () = BaseSetup.setup setup_t;;

# 7062 "setup.ml"
# 7063 "setup.ml"
(* OASIS_STOP *)
let () = setup ();;

0 comments on commit d4d6867

Please sign in to comment.