$OpenBSD: patch-project_mak,v 1.2 2020/11/22 21:30:43 daniel Exp $

 * respect MAKE
 * we already configure ocamlfind via OCAMLFIND_DESTDIR.

Index: project.mak
--- project.mak.orig
+++ project.mak
@@ -67,7 +67,7 @@ endif
 all: $(TOINSTALL)
 
 tests:
-	make -C tests test
+	$(MAKE) -C tests test
 
 zarith.cma: $(MLSRC:%.ml=%.cmo)
 	$(OCAMLMKLIB) -failsafe -o zarith $+ $(LIBS)
@@ -110,10 +110,10 @@ endif
 
 ifeq ($(INSTMETH),findlib)
 install:
-	$(OCAMLFIND) install -destdir "$(INSTALLDIR)" zarith META $(TOINSTALL) -optional dllzarith.$(DLLSUFFIX)
+	$(OCAMLFIND) install zarith META $(TOINSTALL) -optional dllzarith.$(DLLSUFFIX)
 
 uninstall:
-	$(OCAMLFIND) remove -destdir "$(INSTALLDIR)" zarith
+	$(OCAMLFIND) remove zarith
 endif
 
 
@@ -143,7 +143,7 @@ $(AUTOGEN): z.mlp z.mlip $(SSRC) z_pp.pl
 
 clean:
 	/bin/rm -rf *.$(OBJSUFFIX) *.$(LIBSUFFIX) *.$(DLLSUFFIX) *.cmi *.cmo *.cmx *.cmxa *.cmxs *.cma  *.cmt *.cmti *~ \#* depend test $(AUTOGEN) tmp.c depend
-	make -C tests clean
+	$(MAKE) -C tests clean
 
 depend: $(AUTOGEN)
 	$(OCAMLDEP) -native $(OCAMLINC) $(MLSRC) $(MLISRC) > depend
