[Omake] behavior in subdirs

Nathaniel Gray n8gray at caltech.edu
Mon Aug 14 15:10:04 PDT 2006


I just upgraded to svn head:
OMake 0.9.6.99 (development snapshot - preparing 0.9.8 release)

I have a project with a lib subdirectory.  The root OMakefile looks 
something like this:

=========================================
.PHONY: all
BYTE_ENABLED = true
NATIVE_ENABLED = false
. . .
.SUBDIRS: lib
     OCAMLCFLAGS += -thread
     OCAML_OTHER_LIBS += unix threads
     OCamlLibrary(group, group)

     OCAML_LIBS += group
     OCamlProgram(groupServer, groupServer)
     OCamlProgram(groupClient, groupClient)

     all: groupServer groupClient
=========================================

It used to be that if I was in the lib directory and I ran "omake all" I 
would end up building groupServer and groupClient, which was quite 
handy.  Now if I run "omake all" in the lib directory I get this:

*** omake: changing directory to /Users/n8gray/research/syncfun
*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.1 sec)
!!! You are trying to build OCaml native code file: group.cmx
!!! However, the NATIVE_ENABLED flag is not set.
!!! Include the following definition in your OMakefile
!!! if you really want to build this file.
NATIVE_ENABLED = true
*** omake: 18/28 targets are up to date
*** omake: failed (0.1 sec, 0/0 scans, 0/0 rules, 0/40 digests)
*** omake error:
    File /usr/local/lib/omake/build/OCaml.om: line 454, characters 12-19
    early exit(1) requested by an omake file

As I said, I've defined NATIVE_ENABLED already, so this is doubly 
strange.  Is this a bug or a feature?  ;^)

Cheers,
-n8

-- 
 >>>-- Nathaniel Gray -- Caltech Computer Science ------>
 >>>-- Mojave Project -- http://mojave.cs.caltech.edu -->


More information about the OMake-Devel mailing list