-
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.
- Loading branch information
Arjun Guha
committed
Feb 2, 2015
1 parent
a982f64
commit d4d6867
Showing
4 changed files
with
65 additions
and
24 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,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 |
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 |
---|---|---|
@@ -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 |
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