forked from dsheets/ocaml-cohttpserver
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use the faster Makefile that compiles setup.ml to native code
- Loading branch information
Showing
1 changed file
with
24 additions
and
13 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,22 +1,33 @@ | ||
.PHONY: all clean install build | ||
all: build doc | ||
all: build test doc | ||
|
||
setup.data: | ||
ocaml setup.ml -configure | ||
NAME=cohttpd | ||
|
||
build: setup.data | ||
ocaml setup.ml -build | ||
export OCAMLRUNPARAM=b | ||
|
||
doc: setup.data | ||
ocaml setup.ml -doc | ||
setup.bin: setup.ml | ||
ocamlopt.opt -o $@ $< || ocamlopt -o $@ $< || ocamlc -o $@ $< | ||
rm -f setup.cmx setup.cmi setup.o setup.cmo | ||
|
||
install: | ||
ocaml setup.ml -install | ||
setup.data: setup.bin | ||
./setup.bin -configure | ||
|
||
reinstall: | ||
ocamlfind remove cohttpserver || true | ||
ocaml setup.ml -reinstall | ||
build: setup.data setup.bin | ||
./setup.bin -build | ||
|
||
doc: setup.data setup.bin | ||
./setup.bin -doc | ||
|
||
install: setup.bin | ||
./setup.bin -install | ||
|
||
test: setup.bin build | ||
./setup.bin -test | ||
|
||
reinstall: setup.bin | ||
ocamlfind remove $(NAME) || true | ||
./setup.bin -reinstall | ||
|
||
clean: | ||
ocamlbuild -clean | ||
rm -f setup.data setup.log | ||
rm -f setup.data setup.log setup.bin |