aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ice37/files/patch-config-Make.project.rules
blob: afb1637630bcc4804c3f4b71e7bc8960210f5310 (plain) (blame)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
--- config/Make.project.rules.orig  2018-04-20 15:02:08 UTC
+++ config/Make.project.rules
@@ -48,17 +48,16 @@ component-configs       = $(call unique,
 #
 # Some variables for utilities
 #
-INSTALL                 = install -p
-MV                      = mv -f
-RM                      = rm -f
-MKDIR                   = mkdir
-CHMOD                   = chmod
+MV                      = /bin/mv
+RM                      = /bin/rm -f
+MKDIR                   = /bin/mkdir -p
+CHMOD                   = /bin/chmod
 
 Q                       := $(if $(V),,@)
 E                       := $(if $(V),@:,@echo)
 
 # $(call install-data,$1=filename,$2=srcdir,$3=destdist)
-install-data            = $(INSTALL) -m 644 $2/$1 $(DESTDIR)$3/$1
+install-data            = %%INSTALL_DATA%% $2/$1 $(DESTDIR)$3/$1
 
 #
 # $(call install-data-files,$1=files,$2=$srcdir,$3=$destdir,$4=target,$5=text-output)
@@ -218,7 +217,7 @@ endef
 define install-static-library
 $(DESTDIR)$5/$(call mklibname,$1,$3,$4): $2/$(call mklibname,$1,$3,$4) | $(DESTDIR)$5
    $(E) "Installing $$@"
-   $(Q)$(INSTALL) $$< $(DESTDIR)$5
+   $(Q)%%INSTALL_LIB%% $$< $(DESTDIR)$5
 endef
 
 # $(call get-static-library-targets,$1=libname,$2=libdir,$3=version,$4=soversion,$5=devinstall)
@@ -254,8 +253,7 @@ define install-shared-library
 
 $(DESTDIR)$5/$(call mkshlibfilename,$1,$3,$4): $2/$(call mkshlibfilename,$1,$3,$4) | $(DESTDIR)$5
    $(E) "Installing $$@"
-   $(Q)$(INSTALL) $$< $(DESTDIR)$5
-   $(Q)$(CHMOD) a+rx $$@
+   $(Q)%%INSTALL_LIB%% $$< $(DESTDIR)$5
 
 ifneq ($(and $4,$(filter-out undefined,$(origin mksoname))),)
 $(DESTDIR)$5/$(call mksoname,$1,$3,$4): $(DESTDIR)$5/$(call mkshlibfilename,$1,$3,$4) \
@@ -295,8 +293,7 @@ endef
 define install-shared-module
 $(DESTDIR)$5/$1: $2/$1 | $(DESTDIR)$5
    $(E) "Installing $$@"
-   $(Q)$(INSTALL) $$< $(DESTDIR)$5
-   $(Q)$(CHMOD) a+rx $$@
+   $(Q)%%INSTALL_LIB%% $$< $(DESTDIR)$5
 endef
 
 # $(call get-shared-module-targets,$1=libname,$2=libdir,$3=version,$4=soversion,$5=devinstall)
@@ -320,8 +317,7 @@ endef
 define install-program
 $(DESTDIR)$5/$1$(EXE_EXT): $2/$1$(EXE_EXT) | $(DESTDIR)$5
    $(E) "Installing $$@"
-   $(Q)$(INSTALL) $$< $(DESTDIR)$5
-   $(Q)$(CHMOD) a+rx $$@
+   $(Q)%%INSTALL_PROGRAM%% $$< $(DESTDIR)$5
 endef
 
 # $(call get-program-targets,$1=exename,$2=bindir,$3=version,$4=soversion,$5=devinstall)