diff options
author | Pedro Melo <melo@simplicidade.org> | 2010-09-13 16:09:11 +0100 |
---|---|---|
committer | Pedro Melo <melo@simplicidade.org> | 2010-09-13 16:09:11 +0100 |
commit | e13865033d06ea8d499cc01ab457abedd3ba6d05 (patch) | |
tree | 0ebf086e7333aaac427c5cdc4bcf5f666daa6251 | |
parent | 3c23ee1ba265b6e420579dcbf94bd25ece23e9fe (diff) | |
download | redis-e13865033d06ea8d499cc01ab457abedd3ba6d05.tar.gz |
Rename INSTALL_TOP to PREFIX; update documentation
Signed-off-by: Pedro Melo <melo@simplicidade.org>
-rw-r--r-- | INSTALL | 13 | ||||
-rw-r--r-- | README | 3 | ||||
-rw-r--r-- | src/Makefile | 2 |
3 files changed, 15 insertions, 3 deletions
@@ -3,7 +3,18 @@ To compile Redis, do the following: cd src; make The compilation will produce a redis-server binary. -Copy this file where you want. + +To install Redis, use + + make install + +and all the binaries will be installed on /usr/local/bin. + +Alternatively: + + make PREFIX=/some/other/directory + +to have the binaries in /some/other/directory/bin. Run the server using the following command line: @@ -16,7 +16,8 @@ It is as simple as: Redis is just a single binary, but if you want to install it you can use the "make install" target that will copy the binary in /usr/local/bin -for default. +for default. You can also use "make PREFIX=/some/other/directory install" +if you wish to use a different destination. You can run a 32 bit Redis binary using: diff --git a/src/Makefile b/src/Makefile index 38007e8d9..2dc3065f2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -15,7 +15,7 @@ endif CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) $(PROF) DEBUG?= -g -rdynamic -ggdb -INSTALL_TOP= /usr/local +PREFIX= /usr/local INSTALL_BIN= $(INSTALL_TOP)/bin INSTALL= cp -p |