Package: arachne-pnr / 0.1+20160813git52e69ed-1

03_fix_install_dir.patch Patch series | download
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
From: Ruben Undheim <ruben.undheim@gmail.com>
Date: Mon, 19 Sep 2016 08:03:15 +0200
Subject: Upstream doesn't use DESTDIR correctly. Fix

---
 Makefile | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 87e6d72..a086a67 100644
--- a/Makefile
+++ b/Makefile
@@ -104,16 +104,16 @@ mxebin:
 
 .PHONY: install
 install: all
-	mkdir -p $(DESTDIR)/bin
-	cp bin/arachne-pnr $(DESTDIR)/bin/arachne-pnr
-	mkdir -p $(DESTDIR)/share/arachne-pnr
-	cp share/arachne-pnr/chipdb-1k.bin $(DESTDIR)/share/arachne-pnr/chipdb-1k.bin
-	cp share/arachne-pnr/chipdb-8k.bin $(DESTDIR)/share/arachne-pnr/chipdb-8k.bin
+	mkdir -p $(DESTDIR)/usr/bin
+	cp bin/arachne-pnr $(DESTDIR)/usr/bin/arachne-pnr
+	mkdir -p $(DESTDIR)/usr/share/arachne-pnr
+	cp share/arachne-pnr/chipdb-1k.bin $(DESTDIR)/usr/share/arachne-pnr/chipdb-1k.bin
+	cp share/arachne-pnr/chipdb-8k.bin $(DESTDIR)/usr/share/arachne-pnr/chipdb-8k.bin
 
 .PHONY: uninstall
 uninstall:
-	rm -f $(DESTDIR)/bin/arachne-pnr
-	rm -f $(DESTDIR)/bin/share/arachne-pnr/*.bin
+	rm -f $(DESTDIR)/usr/bin/arachne-pnr
+	rm -f $(DESTDIR)/usr/bin/share/arachne-pnr/*.bin
 
 .PHONY: clean
 clean: