-
Notifications
You must be signed in to change notification settings - Fork 4
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 #65 from frenetic-lang/final-async
Conflicts: _oasis _tags setup.ml
- Loading branch information
Showing
44 changed files
with
1,845 additions
and
440 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 |
---|---|---|
|
@@ -8,4 +8,6 @@ _build | |
.DS_Store | ||
setup.data | ||
setup.log | ||
*~ | ||
*~ | ||
.*.sw[po] | ||
._* |
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,38 +1,32 @@ | ||
# OASIS_START | ||
# DO NOT EDIT (digest: 7b2408909643717852b95f994b273fee) | ||
all: build | ||
|
||
SETUP = ocaml setup.ml | ||
LWT ?= $(shell if ocamlfind query lwt.unix >/dev/null 2>&1; then echo --enable-lwt; else echo --disable-lwt; fi) | ||
ASYNC ?= $(shell if ocamlfind query async >/dev/null 2>&1; then echo --enable-async; else echo --disable-async; fi) | ||
# Implies --enable-quickcheck | ||
TESTS ?= $(shell if ocamlfind query quickcheck >/dev/null 2>&1; then echo --enable-tests; else echo --disable-tests; fi) | ||
|
||
build: setup.data | ||
$(SETUP) -build $(BUILDFLAGS) | ||
NAME=openflow | ||
J=4 | ||
|
||
doc: setup.data build | ||
$(SETUP) -doc $(DOCFLAGS) | ||
setup.ml: _oasis | ||
oasis setup | ||
|
||
test: setup.data build | ||
$(SETUP) -test $(TESTFLAGS) | ||
setup.data: setup.ml | ||
ocaml setup.ml -configure $(LWT) $(ASYNC) $(TESTS) | ||
|
||
all: | ||
$(SETUP) -all $(ALLFLAGS) | ||
build: setup.data setup.ml | ||
ocaml setup.ml -build -j $(J) | ||
|
||
install: setup.data | ||
$(SETUP) -install $(INSTALLFLAGS) | ||
install: setup.data setup.ml | ||
ocaml setup.ml -install | ||
|
||
uninstall: setup.data | ||
$(SETUP) -uninstall $(UNINSTALLFLAGS) | ||
test: setup.ml build | ||
_build/test/Test.byte inline-test-runner openflow | ||
|
||
reinstall: setup.data | ||
$(SETUP) -reinstall $(REINSTALLFLAGS) | ||
reinstall: setup.ml | ||
ocamlfind remove $(NAME) || true | ||
ocaml setup.ml -reinstall | ||
|
||
clean: | ||
$(SETUP) -clean $(CLEANFLAGS) | ||
|
||
distclean: | ||
$(SETUP) -distclean $(DISTCLEANFLAGS) | ||
|
||
setup.data: | ||
$(SETUP) -configure $(CONFIGUREFLAGS) | ||
|
||
.PHONY: build doc test all install uninstall reinstall clean distclean configure | ||
|
||
# OASIS_STOP | ||
ocamlbuild -clean | ||
rm -f setup.data setup.log |
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
Oops, something went wrong.