esseks / monicelli

An esoteric programming language, come se fosse antani.
GNU General Public License v3.0
1.32k stars 52 forks source link

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

Open CristianCantoro opened 3 years ago

CristianCantoro commented 3 years ago

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.:

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

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

should install:

instead it of installing: