scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit cbb12aac57c4df5f1ef0ccb3650d35659686fa58
parent 5b3b40d46458f6599e47683ec11e67e5b4e96ede
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 22 Oct 2019 05:24:16 +0200

Fix PREFIX handling

PREFIX was not passed to other parts of the build system,
so it was not possible to use it.

Diffstat:
MMakefile | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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 @@ $(ENVIRON): @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 && \