Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
5c205359
Commit
5c205359
authored
Apr 22, 2011
by
Pieter Noordhuis
Browse files
Configurable paths for install target
parent
ea893c09
Changes
1
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
5c205359
...
...
@@ -39,9 +39,11 @@ endif
CCOPT
=
$(CFLAGS)
$(CCLINK)
DEBUG
?=
-g
-ggdb
PREFIX
?=
/usr/local
INSTALL_INC
=
$(PREFIX)
/include/hiredis
INSTALL_LIB
=
$(PREFIX)
/lib
PREFIX
?=
/usr/local
INCLUDE_PATH
?=
include/hiredis
LIBRARY_PATH
?=
lib
INSTALL_INCLUDE_PATH
=
$(PREFIX)
/
$(INCLUDE_PATH)
INSTALL_LIBRARY_PATH
=
$(PREFIX)
/
$(LIBRARY_PATH)
INSTALL
=
cp
-a
all
:
${DYLIBNAME} ${BINS}
...
...
@@ -94,10 +96,10 @@ clean:
dep
:
$(CC)
-MM
*
.c
install
:
$
{
DYLIBNAME
}
$
{
STLIBNAME
}
mkdir
-p
$(INSTALL_INC)
$(INSTALL_LIB)
$(INSTALL)
hiredis.h async.h adapters
$(INSTALL_INC)
$(INSTALL)
$
{
DYLIBNAME
}
$
{
STLIBNAME
}
$(INSTALL_LIB)
install
:
$
(
DYLIBNAME
)
$
(
STLIBNAME
)
mkdir
-p
$(INSTALL_INC
LUDE_PATH
)
$(INSTALL_LIB
RARY_PATH
)
$(INSTALL)
hiredis.h async.h adapters
$(INSTALL_INC
LUDE_PATH
)
$(INSTALL)
$
(
DYLIBNAME
)
$
(
STLIBNAME
)
$(INSTALL_LIB
RARY_PATH
)
32bit
:
@
echo
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment