Configurable paths for install target
This commit is contained in:
parent
ea893c09d3
commit
5c205359d9
16
Makefile
16
Makefile
@ -39,9 +39,11 @@ endif
|
|||||||
CCOPT= $(CFLAGS) $(CCLINK)
|
CCOPT= $(CFLAGS) $(CCLINK)
|
||||||
DEBUG?= -g -ggdb
|
DEBUG?= -g -ggdb
|
||||||
|
|
||||||
PREFIX?= /usr/local
|
PREFIX?=/usr/local
|
||||||
INSTALL_INC= $(PREFIX)/include/hiredis
|
INCLUDE_PATH?=include/hiredis
|
||||||
INSTALL_LIB= $(PREFIX)/lib
|
LIBRARY_PATH?=lib
|
||||||
|
INSTALL_INCLUDE_PATH= $(PREFIX)/$(INCLUDE_PATH)
|
||||||
|
INSTALL_LIBRARY_PATH= $(PREFIX)/$(LIBRARY_PATH)
|
||||||
INSTALL= cp -a
|
INSTALL= cp -a
|
||||||
|
|
||||||
all: ${DYLIBNAME} ${BINS}
|
all: ${DYLIBNAME} ${BINS}
|
||||||
@ -94,10 +96,10 @@ clean:
|
|||||||
dep:
|
dep:
|
||||||
$(CC) -MM *.c
|
$(CC) -MM *.c
|
||||||
|
|
||||||
install: ${DYLIBNAME} ${STLIBNAME}
|
install: $(DYLIBNAME) $(STLIBNAME)
|
||||||
mkdir -p $(INSTALL_INC) $(INSTALL_LIB)
|
mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH)
|
||||||
$(INSTALL) hiredis.h async.h adapters $(INSTALL_INC)
|
$(INSTALL) hiredis.h async.h adapters $(INSTALL_INCLUDE_PATH)
|
||||||
$(INSTALL) ${DYLIBNAME} ${STLIBNAME} $(INSTALL_LIB)
|
$(INSTALL) $(DYLIBNAME) $(STLIBNAME) $(INSTALL_LIBRARY_PATH)
|
||||||
|
|
||||||
32bit:
|
32bit:
|
||||||
@echo ""
|
@echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user