Skip to content

Commit

Permalink
Merge pull request xapi-project#9 from xapi-project/ppx_trunk
Browse files Browse the repository at this point in the history
Merge ppx_trunk into master for moving to OCaml 4.02.3 and PPX
  • Loading branch information
mseri authored Mar 8, 2017
2 parents d2d679c + 813353e commit 41d8407
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 24 deletions.
47 changes: 34 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,41 @@
BINDIR?=/tmp/
# OASIS_START
# DO NOT EDIT (digest: a3c674b4239234cbbe53afe090018954)

.PHONY: build install uninstall clean
SETUP = ocaml setup.ml

build: configure.done
obuild build
build: setup.data
$(SETUP) -build $(BUILDFLAGS)

configure.done:
obuild configure
touch configure.done
doc: setup.data build
$(SETUP) -doc $(DOCFLAGS)

install:
install -m 0755 dist/build/sm-cli/sm-cli ${BINDIR}
test: setup.data build
$(SETUP) -test $(TESTFLAGS)

uninstall:
rm -f ${BINDIR}/sm-cli
all:
$(SETUP) -all $(ALLFLAGS)

install: setup.data
$(SETUP) -install $(INSTALLFLAGS)

uninstall: setup.data
$(SETUP) -uninstall $(UNINSTALLFLAGS)

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

clean:
obuild clean
rm -f configure.done
$(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
14 changes: 14 additions & 0 deletions _oasis
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
OASISFormat: 0.4
BuildTools: ocamlbuild
Name: sm-cli
Version: 0.0.1
Synopsis: CLI for interacting with SMAPI implementations
Authors: Me <me@myhost.com>
License: LGPL with OCaml linking exception
Plugins: META (0.4), DevFiles (0.4)

Executable sm-cli
MainIs: main.ml
Path: .
BuildDepends: xcp, xcp.storage, re, re.str, rpclib, rpclib.json, cmdliner, threads
CompiledObject: best
2 changes: 1 addition & 1 deletion main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ module Common = struct
verbose: bool;
debug: bool;
socket: string;
} with rpc
} [@@deriving rpc]

let make verbose debug socket queue =
begin match queue with
Expand Down
10 changes: 0 additions & 10 deletions sm-cli.obuild

This file was deleted.

0 comments on commit 41d8407

Please sign in to comment.