Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
7c9b2f63
Commit
7c9b2f63
authored
Sep 21, 2016
by
Emmanuel Gil Peyrot
Committed by
Richard van der Hoff
Sep 23, 2016
Browse files
Add a Makefile rule to install the headers
Signed-off-by:
Emmanuel Gil Peyrot
<
linkmauve@linkmauve.fr
>
parent
6ea9fb45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
7c9b2f63
...
...
@@ -149,17 +149,19 @@ $(JS_EXPORTED_FUNCTIONS): $(PUBLIC_HEADERS)
all
:
test js lib debug doc
.PHONY
:
all
install-debug
:
debug
test
-d
$(DESTDIR)$(PREFIX)
||
mkdir
-p
$(DESTDIR)$(PREFIX)
test
-d
$(DESTDIR)$(PREFIX)
/lib
||
mkdir
$(DESTDIR)$(PREFIX)
/lib
install-headers
:
$(PUBLIC_HEADERS)
test
-d
$(DESTDIR)$(PREFIX)
/include/olm
||
mkdir
-p
$(DESTDIR)$(PREFIX)
/include/olm
install
-Dm644
$(PUBLIC_HEADERS)
$(DESTDIR)$(PREFIX)
/include/olm/
install-debug
:
debug install-headers
test
-d
$(DESTDIR)$(PREFIX)
/lib
||
mkdir
-p
$(DESTDIR)$(PREFIX)
/lib
install
-Dm755
$(DEBUG_TARGET)
$(DESTDIR)$(PREFIX)
/lib/libolm_debug.so.
$(VERSION)
ln
-s
libolm_debug.so.
$(VERSION)
$(DESTDIR)$(PREFIX)
/lib/libolm_debug.so.
$(MAJOR)
ln
-s
libolm_debug.so.
$(VERSION)
$(DESTDIR)$(PREFIX)
/lib/libolm_debug.so
.PHONY
:
install-debug
install
:
lib
test
-d
$(DESTDIR)$(PREFIX)
||
mkdir
-p
$(DESTDIR)$(PREFIX)
test
-d
$(DESTDIR)$(PREFIX)
/lib
||
mkdir
$(DESTDIR)$(PREFIX)
/lib
install
:
lib install-headers
test
-d
$(DESTDIR)$(PREFIX)
/lib
||
mkdir
-p
$(DESTDIR)$(PREFIX)
/lib
install
-Dm755
$(RELEASE_TARGET)
$(DESTDIR)$(PREFIX)
/lib/libolm.so.
$(VERSION)
ln
-s
libolm.so.
$(VERSION)
$(DESTDIR)$(PREFIX)
/lib/libolm.so.
$(MAJOR)
ln
-s
libolm.so.
$(VERSION)
$(DESTDIR)$(PREFIX)
/lib/libolm.so
...
...
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