StreakyCobra / hws

A workspace manager for hackers
GNU General Public License v2.0
0 stars 1 forks source link

Make fails when building documentation #1

Open rgrinberg opened 9 years ago

rgrinberg commented 9 years ago

$ make yields the following error:

ocamlbuild -classic-display "hws.docdir"/index.html
(Re)Generating "src/version.ml"... done.
Solver failed:
  Ocamlbuild knows of no rules that apply to a target named src/commands/Commandnconfignutilsnworkspacenansinmain.odoc. This can happen if you ask Ocamlbuild to build a target with the wrong extension (e.
g. .opt instead of .native) or if the source files live in directories that have not been specified as include directories.
Backtrace:
  - Failed to build the target hws.docdir/index.html
      - Building hws.docdir/index.html:
          - Failed to build all of these:
              - Failed to build all of these:
                  - Building src/commands/Commandnconfignutilsnworkspacenansinmain.odoc
                  - Building src/commands/commandnconfignutilsnworkspacenansinmain.odoc
                  - Building src/core/Commandnconfignutilsnworkspacenansinmain.odoc
                  - Building src/core/commandnconfignutilsnworkspacenansinmain.odoc
                  - Building src/display/Commandnconfignutilsnworkspacenansinmain.odoc
                  - Building src/display/commandnconfignutilsnworkspacenansinmain.odoc
                  - Building src/Commandnconfignutilsnworkspacenansinmain.odoc
                  - Building src/commandnconfignutilsnworkspacenansinmain.odoc
                  - Building tests/Commandnconfignutilsnworkspacenansinmain.odoc
                  - Building tests/commandnconfignutilsnworkspacenansinmain.odoc
                  - Building Commandnconfignutilsnworkspacenansinmain.odoc
                  - Building commandnconfignutilsnworkspacenansinmain.odoc
              - Failed to build all of these:
                  - Building src/commands/Commandnconfignutilsnworkspacenansinmain.odoc:
                      - Failed to build all of these:
...
StreakyCobra commented 9 years ago

Hmmm... I think the problem is coming from some scripting in the Makefile. To avoid having to keep the hws.odocl file synced by hand when adding/removing modules in the source code, I put a target in the Makefile that generates it. Once generated, on my computer it looks like:

Command
Workspace
Config
Utils
Ansi
Main

And it seems – from you log – that your file must be more like:

Commandnconfignutilsnworkspacenansinmain

Can you:

PS: For the moment this project doesn't do anything. I just worked on the part to display information, and because I'm new to OCaml I'm learning it at the same time. So the project is currently kind of ... useless :-)