Skip to content

Commit 4b3bf2c

Browse files
committed
OASIS: Use the compiled_setup_ml AlphaFeature
1 parent 5d0ba10 commit 4b3bf2c

File tree

4 files changed

+50
-23
lines changed

4 files changed

+50
-23
lines changed

Makefile

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,46 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: 7b2408909643717852b95f994b273fee)
2+
# DO NOT EDIT (digest: 9a60866e2fa295c5e33a3fe33b8f3a32)
33

4-
SETUP = ocaml setup.ml
4+
SETUP = ./setup.exe
55

6-
build: setup.data
6+
build: setup.data $(SETUP)
77
$(SETUP) -build $(BUILDFLAGS)
88

9-
doc: setup.data build
9+
doc: setup.data $(SETUP) build
1010
$(SETUP) -doc $(DOCFLAGS)
1111

12-
test: setup.data build
12+
test: setup.data $(SETUP) build
1313
$(SETUP) -test $(TESTFLAGS)
1414

15-
all:
15+
all: $(SETUP)
1616
$(SETUP) -all $(ALLFLAGS)
1717

18-
install: setup.data
18+
install: setup.data $(SETUP)
1919
$(SETUP) -install $(INSTALLFLAGS)
2020

21-
uninstall: setup.data
21+
uninstall: setup.data $(SETUP)
2222
$(SETUP) -uninstall $(UNINSTALLFLAGS)
2323

24-
reinstall: setup.data
24+
reinstall: setup.data $(SETUP)
2525
$(SETUP) -reinstall $(REINSTALLFLAGS)
2626

27-
clean:
27+
clean: $(SETUP)
2828
$(SETUP) -clean $(CLEANFLAGS)
2929

30-
distclean:
30+
distclean: $(SETUP)
3131
$(SETUP) -distclean $(DISTCLEANFLAGS)
32+
$(RM) $(SETUP)
3233

33-
setup.data:
34+
setup.data: $(SETUP)
3435
$(SETUP) -configure $(CONFIGUREFLAGS)
3536

37+
configure: $(SETUP)
38+
$(SETUP) -configure $(CONFIGUREFLAGS)
39+
40+
setup.exe: setup.ml
41+
ocamlfind ocamlopt -o $@ -linkpkg -package oasis.dynrun $< || ocamlfind ocamlc -o $@ -linkpkg -package oasis.dynrun $< || true
42+
$(RM) setup.cmi setup.cmo setup.cmx setup.o
43+
3644
.PHONY: build doc test all install uninstall reinstall clean distclean configure
3745

3846
# OASIS_STOP

_oasis

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
OASISFormat: 0.3
1+
OASISFormat: 0.4
22
Name: macaque
33
Version: 0.6.1
44
Synopsis: MaCaQue (or macaque) is a DSL for SQL Queries in Caml
55
Authors:
66
Gabriel Scherer,
77
Jérôme Vouillon
88
License: LGPL-2 with OCaml linking exception
9-
Plugins: DevFiles (0.3), META (0.3)
9+
Plugins: DevFiles (0.4), META (0.4)
10+
AlphaFeatures: compiled_setup_ml
1011
BuildTools: ocamlbuild
1112

1213
Library "macaque"

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
# OASIS_START
4-
# DO NOT EDIT (digest: dc86c2ad450f91ca10c931b6045d0499)
4+
# DO NOT EDIT (digest: 6f7b8221311e800a7093dc3b793f67ca)
55
set -e
66

77
FST=true
@@ -23,5 +23,5 @@ for i in "$@"; do
2323
esac
2424
done
2525

26-
ocaml setup.ml -configure "$@"
26+
make configure CONFIGUREFLAGS="$*"
2727
# OASIS_STOP

setup.ml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
11
(* setup.ml generated for the first time by OASIS v0.3.0 *)
22

33
(* OASIS_START *)
4-
(* DO NOT EDIT (digest: a8ec13643733e93ac1ad6216802516bc) *)
5-
let () =
6-
try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
7-
with Not_found -> ();;
8-
#use "topfind";;
9-
#require "oasis.dynrun";;
10-
open OASISDynRun;;
4+
(* DO NOT EDIT (digest: 172e37fc4b327922311f6cf9389bc560) *)
5+
(******************************************************************************)
6+
(* OASIS: architecture for building OCaml libraries and applications *)
7+
(* *)
8+
(* Copyright (C) 2011-2013, Sylvain Le Gall *)
9+
(* Copyright (C) 2008-2011, OCamlCore SARL *)
10+
(* *)
11+
(* This library is free software; you can redistribute it and/or modify it *)
12+
(* under the terms of the GNU Lesser General Public License as published by *)
13+
(* the Free Software Foundation; either version 2.1 of the License, or (at *)
14+
(* your option) any later version, with the OCaml static compilation *)
15+
(* exception. *)
16+
(* *)
17+
(* This library is distributed in the hope that it will be useful, but *)
18+
(* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *)
19+
(* or FITNESS FOR A PARTICULAR PURPOSE. See the file COPYING for more *)
20+
(* details. *)
21+
(* *)
22+
(* You should have received a copy of the GNU Lesser General Public License *)
23+
(* along with this library; if not, write to the Free Software Foundation, *)
24+
(* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *)
25+
(******************************************************************************)
26+
27+
open OASISDynRun
28+
1129
(* OASIS_STOP *)
1230
let () = setup ();;

0 commit comments

Comments
 (0)