Skip to content

Commit

Permalink
Makefile: make sure to not read PREFIX in local rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mtzguido committed Jan 9, 2025
1 parent 65dcd38 commit 1786a6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ __install-stage1:

$(INSTALLED_FSTAR1_FULL_EXE): export FSTAR_LINK_LIBDIRS=$(LINK_OK)
$(INSTALLED_FSTAR1_FULL_EXE): stage1-components
$(MAKE) __install-stage1
$(MAKE) __install-stage1 PREFIX=$(CURDIR)/stage1/out
@# ^ pass PREFIX to make sure we don't get it from env

stage2-components: 2.full 2.alib.src 2.plib.src
__install-stage2:
Expand All @@ -262,7 +263,8 @@ __install-stage2:

$(INSTALLED_FSTAR2_FULL_EXE): export FSTAR_LINK_LIBDIRS=$(LINK_OK)
$(INSTALLED_FSTAR2_FULL_EXE): stage2-components
$(MAKE) __install-stage2
$(MAKE) __install-stage2 PREFIX=$(CURDIR)/stage2/out
@# ^ pass PREFIX to make sure we don't get it from env

setlink-%:
if [ -e out ] && ! [ -h out ]; then echo "ERROR: out/ exists and is not a symbolic link, please remove it"; false; fi
Expand Down

0 comments on commit 1786a6d

Please sign in to comment.