ref: 75859a6c2f7458ff82bd61ad1f031837155cb03e
parent: e8b83296d91606b6f10be68e5172452da8ba6535
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Oct 22 01:24:16 EDT 2019
Fix PREFIX handling PREFIX was not passed to other parts of the build system, so it was not possible to use it.
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
PROJECTDIR = .
include $(PROJECTDIR)/scripts/rules.mk
-PREFIX = $(PWD)/$(PROJECTDIR)/root
+PREFIX = $(HOME)
MANPREFIX = $(PREFIX)/share/man
DIRS = src include/scc/scc tests
@@ -22,6 +22,7 @@
@rm -f $@; \
trap 'r=$?;rm -f $$$$.tmp;exit $r' EXIT HUP INT QUIT TERM; \
echo PATH=$$PATH:$$PWD/$(SCRIPTDIR):. > $$$$.tmp && \
+ echo PREFIX=\"$(PREFIX)\" >> $$$$.tmp && \
echo NM=\"$(NM)\" >> $$$$.tmp && \
echo AR=\"$(AR)\" >> $$$$.tmp && \
echo RL=\"$(RL)\" >> $$$$.tmp && \