Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamlbuild: add source files on the fly
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Anastasia Gornostaeva <ermine@e...>
Subject: ocamlbuild: add source files on the fly
Hello.

How can I add additional source files for a program on fly? For instance, in
usual Makefile I can do:

SOURCES = file1.ml file2.ml file3.ml
SOURCES += $(USER_SELECTED_PLUBINS)
SOURCES += file4.ml

All files including a list of user selected files are described in _tags, so
there remains the small stuff -- how to somewhat interesting in myocamlbuild.ml.
As always, there is important the order of files.
And I hope that it does not need to describe long rules to produce %.cm(o|x)s...

Thanks.
ermine