[Omake] A question about the OCamlPackage function and its use...

Francisco Jos? Valverde Albacete fva at tsc.uc3m.es
Mon Feb 5 09:57:41 PST 2007


Hi

I was retaining this email in my Drafts until I checked your solution on 
all my OMakefiles... Please read on...

Jason Hickey wrote:
> I think the quick solution to your problem is to make sure you don't 
> use -for-pack in OCamlPackage.  You should place the definition 
> "OCAMLFLAGS = -for-pack $(PACK)" *after* the call the OCamlPackage.  
> Here is a modification to your code, can you check and see if it works?
Worked like a charm!!! This contradicts all my intuitions about make 
(because the scope is no longer global), but I see now how omake can be 
made to work like a "scripting" language which opens up reeeeaaaaally a 
lot of posibilities.

I'm now trying to program OCamldocHTML and come back to the list when I 
have something ready.

Thanks very much indeed all of you who answered.

Regards,

    Francisco Valverde

>
> Jason
>
>
> RESULT=algebra
> ### THis project is going to pack some files into a module with the 
> same name of the lib.
> PACK = $(RESULT)
> USE_OCAMLFIND = true
> OCAMLPACKS[] +=
>    prelude
>    ocamlgraph
> PACKED_FILES[] =
>    compare
>    orders
>    lattices
>    andsoonandsoforth
> ################################################
> ### Build a particular pack
> ### List here all the PACKS and their PACKED FILES
> pack: $(OCamlPackage $(PACK), $(PACKED_FILES))
>
> ### Do not use -for-pack for OCamlPackage.
> #get rid of -warn-errors A
> OCAMLFLAGS    = -for-pack $(PACK)
>
> ################################################
> # Build an OCaml library
> # In this instance, the library just contains one package.
> FILES[] =
>    $(PACK)
>
> LIB = $(RESULT)
>
> #.DEFAULT: pack $(OCamlLibrary $(LIB), $(FILES))
>
> -- 
> Jason Hickey                  http://www.cs.caltech.edu/~jyh
> Caltech Computer Science      Tel: 626-395-6568 FAX: 626-792-4257
>
>
>
> _______________________________________________
> Omake mailing list
> Omake at metaprl.org
> https://lists.metaprl.org/mailman/listinfo/omake




More information about the Omake mailing list