[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Hendrik Tews <tews@c...> |
| Subject: | Re: [Caml-list] otags and OMakefile |
Sam Steingold <sds@gnu.org> writes: what is the correct entry for TAGS in OMakefile? I have this in the top-level OMakefile: ------------------------------------------------------------------ TAGS: otags -r $(SRC_DIRS) ------------------------------------------------------------------ This only works in simple cases (and, apparently, your case is not simple). 1. somehow otags tries to read non-ml files (despite "otags -h" It does a Unix.stat on the files before filtering, which only works for files smaller 1GB. Granted, this is a bug. 2. otags does not respect the pre-processors used for some files, resulting in many errors: You have to specify the preprocessors on the otags command line, like otags -pa pr_r.cmo revised.ml You might have to add -libdir dir_of_camlp4_module. the preprocessing is specified in OMakeroot: I have no idea about OMakefile, but I doubt it can work as you expected. What you have to (or OMakefile would have) is the following: - collect the source files in equivalence sets according to the needed preprocessors - invoke otags on each such set separately with the right set of -pa options - concat the results (With -v you can see the camlp4 calls that do the real job. ) Bye, Hendrik Tews