Skip to content

Commit

Permalink
use PREFIX in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Sep 9, 2012
1 parent e6807b3 commit 7fd1e1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
@@ -1,6 +1,7 @@
.PHONY: all clean install build
all: build test doc

PREFIX ?= /usr/local
NAME=cohttp

LWT ?= $(shell if ocamlfind query lwt.ssl >/dev/null 2>&1; then echo --enable-lwt; fi)
Expand All @@ -17,7 +18,7 @@ setup.bin: setup.ml
rm -f setup.cmx setup.cmi setup.o setup.cmo

setup.data: setup.bin
./setup.bin -configure $(LWT) $(ASYNC) $(MIRAGE) $(TESTS) $(NETTESTS)
./setup.bin -configure $(LWT) $(ASYNC) $(MIRAGE) $(TESTS) $(NETTESTS) --prefix $(PREFIX)

build: setup.data setup.bin
./setup.bin -build
Expand Down

0 comments on commit 7fd1e1a

Please sign in to comment.