X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=generator%2FMakefile.am;h=a127a87be20fec45f21fc132994274b53af6cf05;hb=f7b84fe56d627a5ac177d4717ccb012454e4a15d;hp=112fc69517a21ab199abe9206d42652bc4299820;hpb=db82d2891f5927d06dbe2e678147cf8fb7f7fd12;p=libguestfs.git diff --git a/generator/Makefile.am b/generator/Makefile.am index 112fc69..a127a87 100644 --- a/generator/Makefile.am +++ b/generator/Makefile.am @@ -62,14 +62,14 @@ noinst_PROGRAM = generator if HAVE_OCAML -generator: $(OBJECTS) - $(OCAMLC) -o generator $(OCAMLCFLAGS) $(OCAMLCLIBS) $(OBJECTS) +$(srcdir)/generator: $(OBJECTS) + $(OCAMLC) -I $(srcdir) -o $@ $(OCAMLCFLAGS) $(OCAMLCLIBS) $(OBJECTS) .ml.cmo: - $(OCAMLC) $(OCAMLCFLAGS) -c $< -o $@ + $(OCAMLC) -I $(srcdir) $(OCAMLCFLAGS) -c $< -o $@ .mli.cmi: - $(OCAMLC) $(OCAMLCFLAGS) -c $< -o $@ + $(OCAMLC) -I $(srcdir) $(OCAMLCFLAGS) -c $< -o $@ depend: .depend