-
Notifications
You must be signed in to change notification settings - Fork 19
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 #69 from kc284/master
CP-26711: Ported xapi-storage to jbuilder.
- Loading branch information
Showing
43 changed files
with
353 additions
and
16,369 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,30 +1,6 @@ | ||
*.swp | ||
_build/ | ||
setup.data | ||
setup.log | ||
setup.bin | ||
*.docdir | ||
*.native | ||
*.byte | ||
*.cmx | ||
*.cmi | ||
*.cmo | ||
*.o | ||
*.a | ||
*.aux | ||
*.log | ||
*.toc | ||
*~ | ||
#* | ||
generator/_build | ||
generator/main.native | ||
ocaml/lib/datapath.ml | ||
ocaml/lib/plugin.ml | ||
ocaml/lib/volume.ml | ||
python/xapi/storage/api/datapath.py | ||
python/xapi/storage/api/plugin.py | ||
python/xapi/storage/api/volume.py | ||
ocaml/examples | ||
python/build | ||
*.pyc | ||
*.pyo | ||
*.install | ||
.merlin | ||
|
||
*.rej | ||
*.orig |
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 |
---|---|---|
@@ -1,37 +1,45 @@ | ||
PYTHON_PREFIX?=/usr | ||
OPAM_PREFIX?=$(shell opam config var prefix) | ||
OPAM_LIBDIR?=$(shell opam config var lib) | ||
|
||
default: build | ||
.PHONY: release build install uninstall clean test examples html doc reindent | ||
|
||
release: | ||
jbuilder build @install | ||
jbuilder build @python | ||
make -C _build/default/python | ||
|
||
.PHONY: build | ||
build: | ||
(cd generator; make) | ||
mkdir -p ocaml/examples | ||
mkdir -p python/xapi/storage/api | ||
./generator/main.native | ||
make -C ocaml | ||
make -C python | ||
|
||
.PHONY: html | ||
html: build | ||
./generator/main.native -html | ||
rsync -av ./doc/static/ ./doc/gen/ | ||
|
||
.PHONY: install | ||
jbuilder build @install --dev | ||
jbuilder build @python --dev | ||
make -C _build/default/python | ||
|
||
install: | ||
make -C ocaml install | ||
make -C python install | ||
jbuilder install --prefix=$(OPAM_PREFIX) --libdir=$(OPAM_LIBDIR) xapi-storage | ||
make -C _build/default/python install PREFIX=$(PYTHON_PREFIX) | ||
|
||
.PHONY: uninstall | ||
uninstall: | ||
make -C ocaml uninstall | ||
make -C python uninstall | ||
|
||
.PHONY: reinstall | ||
reinstall: | ||
make -C ocaml reinstall | ||
make -C python reinstall | ||
jbuilder uninstall --prefix=$(OPAM_PREFIX) --libdir=$(OPAM_LIBDIR) xapi-storage | ||
make -C _build/default/python uninstall | ||
|
||
.PHONY: clean | ||
clean: | ||
make -C generator clean | ||
make -C ocaml clean | ||
make -C python clean | ||
jbuilder clean | ||
|
||
test: | ||
jbuilder runtest | ||
|
||
examples: | ||
jbuilder build @gen_examples | ||
|
||
html: | ||
jbuilder build @gen_html | ||
|
||
# requires odoc | ||
doc: | ||
jbuilder build @doc | ||
|
||
reindent: | ||
git ls-files '*.ml*' | xargs ocp-indent --syntax cstruct -i | ||
|
||
|
||
.DEFAULT_GOAL := 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
This is where the generaed docs go | ||
# HTML Documentation | ||
|
||
This can be autogenerated by running `make html` in the root of this repo. |
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 @@ | ||
(jbuild_version 1) | ||
|
||
(alias ( | ||
(name gen_html) | ||
(deps ( | ||
../../generator/html/www.exe | ||
(files_recursively_in ../static) | ||
(files_recursively_in ../templates) | ||
)) | ||
(action (progn | ||
(run ${<}) | ||
(run rsync -av ../static/ .) | ||
)) | ||
)) | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
(jbuild_version 1) | ||
|
||
(executable ( | ||
(name www) | ||
(libraries ( | ||
generator_lib | ||
cow | ||
caml2html | ||
)) | ||
)) |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.