summarylogtreecommitdiffstats
path: root/0001-Install-to-usr-bin-instead-of-usr-sbin.patch
blob: e157d2ae478e54b0ed7358d3d277bc204c185cc0 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
From fecab57fed659f020872112d2123c89c2e7f0f22 Mon Sep 17 00:00:00 2001
From: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
Date: Wed, 20 Jan 2016 00:37:02 -0500
Subject: [PATCH 1/2] Install to /usr/bin instead of /usr/sbin

---
 lcptools-v2/Makefile | 6 +++---
 lcptools/Makefile    | 6 +++---
 tb_polgen/Makefile   | 8 ++++----
 utils/Makefile       | 6 +++---
 4 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/lcptools-v2/Makefile b/lcptools-v2/Makefile
index d6c4626..6fa9bff 100644
--- a/lcptools-v2/Makefile
+++ b/lcptools-v2/Makefile
@@ -34,15 +34,15 @@ dist : install
 install :
 	@set -e; for i in  $(LCP2_TARGETS);\
 	do \
-		$(MAKE) DISTDIR=$(DISTDIR) INST_TARGET=$(DISTDIR)/usr/sbin/$$i do_install; \
+		$(MAKE) DISTDIR=$(DISTDIR) INST_TARGET=$(DISTDIR)/usr/bin/$$i do_install; \
 	done
 
 .PHONY: do_install
 do_install : $(INST_TARGET)
 
 $(INST_TARGET) : $(notdir $(INST_TARGET))
-	[ -d $(DISTDIR)/usr/sbin ] || $(INSTALL_DIR) $(DISTDIR)/usr/sbin
-	$(INSTALL_PROG) -t $(DISTDIR)/usr/sbin $^
+	[ -d $(DISTDIR)/usr/bin ] || $(INSTALL_DIR) $(DISTDIR)/usr/bin
+	$(INSTALL_PROG) -t $(DISTDIR)/usr/bin $^
 
 
 clean :
diff --git a/lcptools/Makefile b/lcptools/Makefile
index f4d8bd4..a20324a 100644
--- a/lcptools/Makefile
+++ b/lcptools/Makefile
@@ -50,15 +50,15 @@ dist : install
 install :
 	@set -e; for i in $(TPMNV_TARGETS) $(LCP1_TARGETS) $(LCP2_TARGETS);\
 	do \
-		$(MAKE) DISTDIR=$(DISTDIR) INST_TARGET=$(DISTDIR)/usr/sbin/$$i do_install; \
+		$(MAKE) DISTDIR=$(DISTDIR) INST_TARGET=$(DISTDIR)/usr/bin/$$i do_install; \
 	done
 
 .PHONY: do_install
 do_install : $(INST_TARGET)
 
 $(INST_TARGET) : $(notdir $(INST_TARGET))
-	[ -d $(DISTDIR)/usr/sbin ] || $(INSTALL_DIR) $(DISTDIR)/usr/sbin
-	$(INSTALL_PROG) -t $(DISTDIR)/usr/sbin $^
+	[ -d $(DISTDIR)/usr/bin ] || $(INSTALL_DIR) $(DISTDIR)/usr/bin
+	$(INSTALL_PROG) -t $(DISTDIR)/usr/bin $^
 
 
 clean :
diff --git a/tb_polgen/Makefile b/tb_polgen/Makefile
index 6a76717..3298005 100644
--- a/tb_polgen/Makefile
+++ b/tb_polgen/Makefile
@@ -29,11 +29,11 @@ build : $(TARGET)
 dist : install
 
 
-install : $(DISTDIR)/usr/sbin/$(TARGET)
+install : $(DISTDIR)/usr/bin/$(TARGET)
 
-$(DISTDIR)/usr/sbin/$(TARGET) : $(TARGET)
-	[ -d $(DISTDIR)/usr/sbin ] || $(INSTALL_DIR) $(DISTDIR)/usr/sbin
-	$(INSTALL_PROG) -t $(DISTDIR)/usr/sbin $(TARGET)
+$(DISTDIR)/usr/bin/$(TARGET) : $(TARGET)
+	[ -d $(DISTDIR)/usr/bin ] || $(INSTALL_DIR) $(DISTDIR)/usr/bin
+	$(INSTALL_PROG) -t $(DISTDIR)/usr/bin $(TARGET)
 
 
 clean :
diff --git a/utils/Makefile b/utils/Makefile
index 8650bcc..8ec00e2 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -27,15 +27,15 @@ dist : install
 install :
 	@set -e; for i in $(TARGETS);\
 	do \
-		$(MAKE) DISTDIR=$(DISTDIR) INST_TARGET=$(DISTDIR)/usr/sbin/$$i do_install; \
+		$(MAKE) DISTDIR=$(DISTDIR) INST_TARGET=$(DISTDIR)/usr/bin/$$i do_install; \
 	done
 
 .PHONY: do_install
 do_install : $(INST_TARGET)
 
 $(INST_TARGET) : $(notdir $(INST_TARGET))
-	[ -d $(DISTDIR)/usr/sbin ] || $(INSTALL_DIR) $(DISTDIR)/usr/sbin
-	$(INSTALL_PROG) -t $(DISTDIR)/usr/sbin $^
+	[ -d $(DISTDIR)/usr/bin ] || $(INSTALL_DIR) $(DISTDIR)/usr/bin
+	$(INSTALL_PROG) -t $(DISTDIR)/usr/bin $^
 
 
 clean :
-- 
2.7.0