blob: 4943fab068012d5c23d28c4b6ce351771f48ec91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
--- LVM2.2.02.168.orig/libdm/Makefile.in 2016-12-01 00:17:30.000000000 +0100
+++ LVM2.2.02.168/libdm/Makefile.in 2017-03-27 20:24:52.000000000 +0200
@@ -38,10 +38,7 @@ SOURCES =\
INCLUDES = -I$(srcdir)/$(interface)
-ifeq ("@STATIC_LINK@", "yes")
LIB_STATIC = $(interface)/libdevmapper.a
-endif
-
LIB_SHARED = $(interface)/libdevmapper.$(LIB_SUFFIX)
LIB_VERSION = $(LIB_VERSION_DM)
TARGETS = libdevmapper.$(LIB_SUFFIX) libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION)
@@ -69,9 +66,7 @@ libdevmapper.$(LIB_SUFFIX) libdevmapper.
INSTALL_TYPE = install_dynamic
-ifeq ("@STATIC_LINK@", "yes")
- INSTALL_TYPE += install_static
-endif
+INSTALL_TYPE += install_static
ifeq ("@PKGCONFIG@", "yes")
INSTALL_TYPE += install_pkgconfig
@@ -82,7 +77,8 @@ install: $(INSTALL_TYPE) install_include
install_device-mapper: install
install_include: $(srcdir)/libdevmapper.h
- $(INSTALL_DATA) -D $< $(includedir)/$(<F)
+ $(INSTALL_DIR) $(includedir)
+ $(INSTALL_DATA) $< $(includedir)/$(<F)
install_dynamic: install_@interface@
@@ -91,10 +87,12 @@ install_static: install_@interface@_stat
install_ioctl: install_lib_shared
install_pkgconfig: libdevmapper.pc
- $(INSTALL_DATA) -D $< $(pkgconfigdir)/devmapper.pc
+ $(INSTALL_DIR) $(pkgconfigdir)
+ $(INSTALL_DATA) $< $(pkgconfigdir)/devmapper.pc
install_ioctl_static: $(LIB_STATIC)
- $(INSTALL_DATA) -D $< $(usrlibdir)/$(<F)
+ $(INSTALL_DIR) $(usrlibdir)
+ $(INSTALL_DATA) $< $(usrlibdir)/$(<F)
CLEAN_TARGETS += ioctl/libdevmapper.a
DISTCLEAN_TARGETS += libdevmapper.pc
|