When installing software in $HOME, how do the linux filesystem hierarchy directories map to subdirectories of $HOME?I am asking this question so that I can write a build system that picks reasonable default paths for a user install.  The build system infrastructure is Haskell-specific (Cabal) but the installed files include C++ headers and libraries, for which Cabal doesn't have a default install path.
Filesystem organization for software in HOME
directory structure;home
$PREFIX is ~/.local/. Everything else maps under there.