Skip to content

Commit cffaf72

Browse files
authored
Merge pull request #176 from edwintorok/jbuilderize-make-install
jbuilderize: obey DESTDIR in make install
2 parents 03f01c8 + ce235a9 commit cffaf72

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)