[Omake] Adding version control/time stamp info to the module
Dmitry Bely
dmitry.bely at gmail.com
Thu May 24 06:27:26 PDT 2007
Aleksey,
Thank you very much for you Subversion recipe, but one thing is still
unclear for me. You wrote:
> One option would be to have version.h depend on "all the source files",
> so that it is rebuilt whenever something changes
In the simplest case if I have something like
files = ...
program = ...
.DEFAULT: $(OcamlProgram(program, files))
How to make version.h depend on on "all the source files"? Should I
duplicate all OcamlProgram() logic with
CMOFILES = $(addsuffix .cmo, $(files))
CMXFILES = $(addsuffix .cmx, $(files))
...
version.h.byte: $(CMOFILES) ...
...
version.h.opt: $(CMXFILES) ...
...
if $(NATIVE_ENABLED)
version.h: version.h.opt
ln-or-cp $< $@
else
version.h: version.h.byte
ln-or-cp $< $@
or there is a simpler way?
- Dmitry Bely
More information about the Omake
mailing list