SUBDIRS = libvirt mlvirsh examples
-all opt depend install:
+all opt depend install-opt install-byte:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d $@; \
if [ $$? -ne 0 ]; then exit 1; fi; \
force:
.PHONY: all opt depend install clean distclean configure dist check-manifest \
- release release_stage_2 release_stage_3 force
\ No newline at end of file
+ release release_stage_2 release_stage_3 force
$(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
../libvirt/mllibvirt.cmxa -o $@ $<
-install:
+install-opt install-byte:
include ../Make.rules
libvirt_version.cmo: libvirt_version.cmi
libvirt_version.cmi: libvirt_version.mli
-install:
- ocamlfind install libvirt \
- ../META *.so *.a *.cmx *.cma *.cmxa *.cmi *.mli
+
+install-byte:
+ mkdir -p $(OCAMLDESTDIR)
+ ocamlfind install -destdir $(OCAMLDESTDIR) -ldconf ignore libvirt \
+ ../META *.so *.a *.cma *.cmi *.mli
+
+install-opt:
+ mkdir -p $(OCAMLDESTDIR)
+ ocamlfind install -destdir $(OCAMLDESTDIR) -ldconf ignore libvirt \
+ ../META *.so *.a *.cma *.cmx *.cmxa *.cmi *.mli
include ../Make.rules
../libvirt/mllibvirt.cmxa -o $@ $^
endif
-install:
+install-opt:
if [ -x mlvirsh.opt ]; then \
mkdir -p $(DESTDIR)$(bindir); \
$(INSTALL) -m 0755 mlvirsh.opt $(DESTDIR)$(bindir)/mlvirsh; \
fi
+install-byte:
+ if [ -x mlvirsh ]; then \
+ mkdir -p $(DESTDIR)$(bindir); \
+ $(INSTALL) -m 0755 mlvirsh $(DESTDIR)$(bindir)/mlvirsh; \
+ fi
+
include ../Make.rules