Permalink
Browse files

use PREFIX in Makefile

  • Loading branch information...
1 parent e6807b3 commit 7fd1e1aa700194fa543b9e09d7d1b3c9af8e59d7 @avsm avsm committed Sep 9, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Makefile
View
3 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)
@@ -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

0 comments on commit 7fd1e1a

Please sign in to comment.