File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
- undefine COQPATH
2
- PREFIX =${out}
1
+ ifeq (3.82,$(firstword $(sort $(MAKE_VERSION ) 3.82) ) )
2
+ # stuff that requires make-3.82 or higher
3
+ undefine COQPATH
4
+ endif
5
+ ifdef out
6
+ PREFIX=${out}
7
+ INSTALLOPT="--prefix=${PREFIX} --libdir ${OCAMLFIND_DESTDIR}"
8
+ endif
3
9
4
10
all : rocq extraction_plugin extraction_ocaml_ffi plugin bootstrap
5
11
@@ -16,8 +22,8 @@ install: install-rocq plugin
16
22
17
23
install-rocq : Makefile.rocq rocq
18
24
+$(MAKE ) -f Makefile.rocq install
19
- cd lib/rocq_verified_extraction_ocaml_ffi && dune install --prefix= ${PREFIX} --libdir ${OCAMLFIND_DESTDIR }
20
- cd lib/rocq_verified_extraction_plugin && dune install --prefix= ${PREFIX} --libdir ${OCAMLFIND_DESTDIR }
25
+ cd lib/rocq_verified_extraction_ocaml_ffi && dune install ${INSTALLOPT }
26
+ cd lib/rocq_verified_extraction_plugin && dune install ${INSTALLOPT }
21
27
cd plugin/plugin && $(MAKE ) -f Makefile.rocq install
22
28
cd plugin/plugin-bootstrap && $(MAKE ) -f Makefile.rocq install
23
29
You can’t perform that action at this time.
0 commit comments