File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
# Installation macro. Call with source directory as arg 1,
6
6
# destination directory as arg 2, and filename/libname-glob as arg 3
7
7
ifdef VERBOSE
8
- INSTALL = cp $(1 ) /$(3 ) $(2 ) /$(3 )
9
- INSTALL_LIB = cp ` ls -rt1 $( 1) /$( 3) | tail -1 ` $(2 ) /
8
+ INSTALL = install -m755 -T $(1 ) /$(3 ) $(2 ) /$(3 )
9
+ INSTALL_LIB = install -m644 ` ls -rt1 $( 1) /$( 3) | tail -1 ` $(2 ) /
10
10
else
11
- INSTALL = $(Q )$(call E, install: $(2 ) /$(3 ) ) && cp $(1 ) /$(3 ) $(2 ) /$(3 )
11
+ INSTALL = $(Q )$(call E, install: $(2 ) /$(3 ) ) && install -m755 -T $(1 ) /$(3 ) $(2 ) /$(3 )
12
12
INSTALL_LIB = $(Q )$(call E, install_lib: $(2 ) /$(3 ) ) && \
13
- cp ` ls -rt1 $( 1) /$( 3) | tail -1 ` $(2 ) /
13
+ install -m644 ` ls -rt1 $( 1) /$( 3) | tail -1 ` $(2 ) /
14
14
endif
15
15
16
16
# The stage we install from
You can’t perform that action at this time.
0 commit comments