37 lines
992 B
Text
37 lines
992 B
Text
* respect MAKE
|
|
* we already configure ocamlfind via OCAMLFIND_DESTDIR.
|
|
|
|
Index: project.mak
|
|
--- project.mak.orig
|
|
+++ project.mak
|
|
@@ -68,7 +68,7 @@ endif
|
|
all: $(TOBUILD)
|
|
|
|
tests:
|
|
- make -C tests test
|
|
+ $(MAKE) -C tests test
|
|
|
|
zarith.cma: $(MLSRC:%.ml=%.cmo)
|
|
$(OCAMLMKLIB) -failsafe -o zarith $+ $(LIBS)
|
|
@@ -112,10 +112,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
|
|
|
|
|
|
@@ -142,7 +142,7 @@ endif
|
|
|
|
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
|