monicelli icon indicating copy to clipboard operation
monicelli copied to clipboard

Should docs be built under $INSTALL_PREFIX/share/doc instead of $INSTALL_PREFIX/doc?

Open CristianCantoro opened this issue 4 years ago • 0 comments

Following the build instructions:

$ cd monicelli/
$ mkdir build/
$ cd build/
$ cmake .. -DCMAKE_INSTALL_PREFIX="$HOME/mcc"
$ make all install

creates the following files in $HOME/mcc:

~/mcc $ tree .                  
.
├── bin
│   └── mcc
└── doc
    └── monicelli
        ├── LICENSE.txt
        └── README.md

3 directories, 3 files

On *nix systems, docs are usually under: share/doc/<proj>/doc, i.e.:

  • /usr/local/share/doc
  • /usr/share/doc

so if building with -DCMAKE_INSTALL_PREFIX="/usr/local":

cmake .. -DCMAKE_INSTALL_PREFIX="/usr/local"

should install:

  • /usr/local/bin/mcc
  • /usr/local/share/doc/monicelli/LICENSE.txt
  • /usr/local/share/doc/monicelli/README.txt

instead it of installing:

  • /usr/local/bin/mcc
  • /usr/local/doc/monicelli/LICENSE.txt
  • /usr/local/doc/monicelli/README.txt

CristianCantoro avatar May 08 '21 15:05 CristianCantoro