Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jochen Bauer
uWebSockets
Commits
d6aa51e9
Commit
d6aa51e9
authored
Dec 28, 2017
by
Caleb Xu
Committed by
Alex Hultman
Dec 28, 2017
Browse files
Allow for installation to custom prefix (#751)
parent
06645c08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
d6aa51e9
...
...
@@ -13,14 +13,17 @@ install:
make
install
`
(
uname
-s
)
`
.PHONY
:
installLinux
installLinux
:
if
[
-d
"/usr/lib64"
]
;
then
cp
libuWS.so /usr/lib64/
;
else
cp
libuWS.so /usr/lib/
;
fi
mkdir
-p
/usr/include/uWS
cp
src/
*
.h /usr/include/uWS/
$(
eval
PREFIX ?
=
/usr
)
if
[
-d
"/usr/lib64"
]
;
then
mkdir
-p
$(PREFIX)
/lib64
&&
cp
libuWS.so
$(PREFIX)
/lib64/
;
else
mkdir
-p
$(PREFIX)
/lib
&&
cp
libuWS.so
$(PREFIX)
/lib/
;
fi
mkdir
-p
$(PREFIX)
/include/uWS
cp
src/
*
.h
$(PREFIX)
/include/uWS/
.PHONY
:
installDarwin
installDarwin
:
cp
libuWS.dylib /usr/local/lib/
mkdir
-p
/usr/local/include/uWS
cp
src/
*
.h /usr/local/include/uWS/
$(
eval
PREFIX ?
=
/usr/local
)
mkdir
-p
$(PREFIX)
/lib
cp
libuWS.dylib
$(PREFIX)
/lib/
mkdir
-p
$(PREFIX)
/include/uWS
cp
src/
*
.h
$(PREFIX)
/include/uWS/
.PHONY
:
clean
clean
:
rm
-f
libuWS.so
...
...
Write
Preview
Supports
Markdown
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