1 From 0dcd2368c3e23a5cc1cc4a979d9c241ed9302236 Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@openwide.fr>
3 Date: Sun, 4 Jan 2015 16:06:07 +0100
4 Subject: [PATCH] Makefile: install static library and headers separately
6 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
8 Makefile | 12 +++++++-----
9 1 file changed, 7 insertions(+), 5 deletions(-)
11 diff --git a/Makefile b/Makefile
12 index e27dcbd..ecf52d1 100644
15 @@ -45,12 +45,10 @@ perl-lib: static
16 cd LockDev && make OPTIMIZE="-O2 -g -Wall"
17 cd LockDev && make test
19 -.PHONY: install install_dev install_dbg install_doc install_run
20 -install: install_dev install_dbg install_doc install_run
21 +.PHONY: install install_dev install_dbg install_doc install_run install_static
22 +install: install_dev install_dbg install_doc install_run install_static
24 -install_dev: ${static} src/lockdev.h
25 - install -m755 -d ${libdir}
26 - install -m644 ${static} ${libdir}
27 +install_dev: src/lockdev.h
28 install -m755 -d ${incdir}
29 install -m644 src/lockdev.h ${incdir}
30 install -m644 src/ttylock.h ${incdir}
31 @@ -69,6 +67,10 @@ install_doc: docs/lockdev.3
32 install -m755 -d ${mandir}/man3
33 install -m644 docs/lockdev.3 ${mandir}/man3
35 +install_static: ${static}
36 + install -m755 -d ${libdir}
37 + install -m644 ${static} ${libdir}
39 install_run: ${shared}
40 install -m755 -d ${libdir}
41 install -m644 ${shared} ${libdir}