How do I use cxref to process source files in more than one directory?
The cxref program depends on a database of cross references, these must all be consistent. This requires that all of the files to be cross referenced are in the same directory tree. Example: directory files – – – – – – – – basedir : f0.c f0.h … |- s1 : f1.c f1.h … |- s2 : f2.c f2.h … … — f2.c — #include <...> #include “f2.h” #include “../s1/f1.h” #include “f0.h” ———- In the base directory ‘basedir’ run ‘cxref -xref -Odoc s2/f2.c -html -I.’. This will create the file ‘doc/s2/f2.c.html’ for the file ‘f2.c’ and this will contain references to the files ‘doc/s2/f2.h.html’, ‘doc/s1/f1.h.html’ and ‘doc/f0.h.html’. The subdirectories ‘doc/s1’, ‘doc/s2’ will be automatically created within the ‘doc’ directory to put the files into (the ‘doc’ directory must already exist). directory files – – – – – – – – basedir |- doc : f0.c.html f0.h.html … cxref.html |- s1 : f1.c.html f1.h.html … |- s2 : f2.c.html f2.h.html … … An alternative method is to use the -R option to cxref. I
Related Questions
- When compiling I get "Could not copy temporary files to the output directory" or "The process cannot access the file because it is being used by another process" error messages. Why?
- Can I specify a directory on windows client to back up my source files on remote Unix/Linux/BSD server?
- How do I use cxref to process source files in more than one directory?