shithub: scc

Download patch

ref: 6b5fcb86c0175ecb678edf3b77194b7ffff2bc49
parent: 044ed044112af8996f280664833682a4f437016f
author: Quentin Rameau <quinq@fifth.space>
date: Sat Oct 30 19:22:30 EDT 2021

install: Fix DESTDIR handling

--- a/Makefile
+++ b/Makefile
@@ -10,8 +10,8 @@
 PROJECTDIR = .
 include $(PROJECTDIR)/scripts/rules.mk
 
-PREFIX= $(HOME)
-ROOT=$(DESTDIR)$(PREFIX)
+PREFIX = $(HOME)
+ROOT = $(DESTDIR)$(PREFIX)
 NODEP = 1
 
 all:
@@ -19,11 +19,11 @@
 	+@$(MAKE) `$(SCRIPTDIR)/config` `uname -m`
 
 install:
-	$(SCRIPTDIR)/install $(PREFIX)
+	$(SCRIPTDIR)/install $(ROOT)
 	+@$(MAKE) install-`uname -m`
 
 uninstall:
-	$(SCRIPTDIR)/uninstall $(PREFIX)
+	$(SCRIPTDIR)/uninstall $(ROOT)
 	+@$(MAKE) uninstall-`uname -m`
 
 #############################################################