summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/groff/groff-1.18.1.4/groff-1.18.1.4-fix-bindir.patch
blob: 559ae728985d9ea8e2cdb34ef37789b5cb9f259c (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
Upstream-Status: Inappropriate [embedded]

Signed-off-by: Ming Liu <ming.liu@windriver.com>
---
 Makefile.sub |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

--- a/contrib/groffer/Makefile.sub
+++ b/contrib/groffer/Makefile.sub
@@ -38,16 +38,16 @@ groffer: groffer.sh groffer2.sh version.
 	$(RM) $@;
 	sed \
             -e "s|@g@|$(g)|g" \
-	    -e "s|@BINDIR@|$(DESTDIR)$(bindir)|g" \
+	    -e "s|@BINDIR@|$(bindir)|g" \
 	    -e "s|@libdir@|$(DESTDIR)$(libdir)|g" \
 	    -e "s|@VERSION@|$(version)$(revision)|g" \
 	    $(srcdir)/groffer.sh >$@;
 	chmod +x $@
 
 install_data: groffer
-	-test -d $(DESTDIR)$(bindir) || $(mkinstalldirs) $(DESTDIR)$(bindir)
-	-$(RM) $(DESTDIR)$(bindir)/groffer
-	$(INSTALL_SCRIPT) groffer $(DESTDIR)$(bindir)/groffer
+	-test -d $(bindir) || $(mkinstalldirs) $(bindir)
+	-$(RM) $(bindir)/groffer
+	$(INSTALL_SCRIPT) groffer $(bindir)/groffer
 	-test -d $(DESTDIR)$(libdir)/groff/groffer || \
           $(mkinstalldirs) $(DESTDIR)$(libdir)/groff/groffer
 	-$(RM) $(DESTDIR)$(libdir)/groff/groffer/groffer2.sh
@@ -58,7 +58,7 @@ install_data: groffer
 	$(DESTDIR)$(libdir)/groff/groffer/version.sh
 
 uninstall_sub:
-	-$(RM) $(DESTDIR)$(bindir)/groffer
+	-$(RM) $(bindir)/groffer
 	-$(RM) $(DESTDIR)$(libdir)/groff/groffer/groffer2.sh
 	-$(RM) $(DESTDIR)$(libdir)/groff/groffer/version.sh
 	-rmdir $(DESTDIR)$(libdir)/groff/groffer