Skip to content

Commit ce235a9

Browse files
edwintorokBuild Environment
authored andcommitted
jbuilderize: obey DESTDIR in make install
Signed-off-by: Edwin Török <[email protected]>
1 parent 254f58e commit ce235a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
OPAM_PREFIX=$(DESTDIR)$(shell opam config var prefix)
2+
OPAM_LIBDIR=$(DESTDIR)$(shell opam config var lib)
3+
14
.PHONY: build release install uninstall clean test doc reindent
25

36
build:
@@ -7,7 +10,7 @@ release:
710
jbuilder build @install
811

912
install:
10-
jbuilder install
13+
jbuilder install --prefix=$(OPAM_PREFIX) --libdir=$(OPAM_LIBDIR)
1114

1215
uninstall:
1316
jbuilder uninstall

0 commit comments

Comments
 (0)