@@ -84,9 +84,9 @@ def make(self, target=None, args=None, makefile=None):
84
84
command = join_arguments ([make_program , str_makefile , target , str_args , str_extra_args , jobs ])
85
85
self ._conanfile .run (command )
86
86
87
- def install (self , args = None , target = "install" , makefile = None ):
87
+ def install (self , args = None , target = None , makefile = None ):
88
88
"""
89
- This is just an "alias" of ``self.make(target="install")``
89
+ This is just an "alias" of ``self.make(target="install")`` or ``self.make(target="install-strip")``
90
90
91
91
:param args: (Optional, Defaulted to ``None``): List of arguments to use for the
92
92
``make`` call. By default an argument ``DESTDIR=unix_path(self.package_folder)``
@@ -95,6 +95,11 @@ def install(self, args=None, target="install", makefile=None):
95
95
:param target: (Optional, Defaulted to ``None``): Choose which target to install.
96
96
:param makefile: (Optional, Defaulted to ``None``): Allow specifying a custom makefile to use instead of default "Makefile"
97
97
"""
98
+ if target is None :
99
+ target = "install"
100
+ do_strip = self ._conanfile .conf .get ("tools.build:install_strip" , check_type = bool )
101
+ if do_strip :
102
+ target += "-strip"
98
103
args = args if args else []
99
104
str_args = " " .join (args )
100
105
if "DESTDIR=" not in str_args :
0 commit comments