Skip to content

Commit c72e8b7

Browse files
authored
Merge pull request #3663 from mtzguido/mk2
Makefile/opam fixes
2 parents db2cbe7 + 852f794 commit c72e8b7

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ __install-stage1:
253253

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

258259
stage2-components: 2.full 2.alib.src 2.plib.src
259260
__install-stage2:
@@ -262,15 +263,16 @@ __install-stage2:
262263

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

267269
setlink-%:
268270
if [ -e out ] && ! [ -h out ]; then echo "ERROR: out/ exists and is not a symbolic link, please remove it"; false; fi
269271
ln -Trsf stage$*/out out
270272
# For compatibility with the previous layout
271273
mkdir -p bin
272274
ln -Trsf out/bin/fstar.exe bin/fstar.exe
273-
ln -Trsf out/bin/get_fstar_z3.sh bin/get_fstar_z3.sh
275+
ln -Trsf .scripts/get_fstar_z3.sh bin/get_fstar_z3.sh
274276

275277
stage1: $(INSTALLED_FSTAR1_FULL_EXE)
276278
1: stage1

fstar.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ depends: [
2424
]
2525
depexts: ["coreutils"] {os = "macos" & os-distribution = "homebrew"}
2626
build: [
27-
[make "PREFIX=%{prefix}%" "-j" jobs "ADMIT=1"]
27+
[make "-j" jobs "ADMIT=1"]
2828
]
2929
install: [
3030
[make "PREFIX=%{prefix}%" "install"]

0 commit comments

Comments
 (0)