JuliaLang/julia — pull request #1565 by staticfloat (2012-11-18 09:20:42+00:00)
Title: Split installation of libraries, move non-libraries to share/

This is a pretty huge, monolithic commit (don't really see how to split it up sanely). It reorganizes a fair amount of the build process, allowing for the flexibility to satisfy #1560. Namely, it:

* Moves all non-code related files to `/share/`. This includes .jl files as well as webserver errata.

* Defines two new environment variables, $(JL_LIBDIR) and $(JL_PRIVATE_LIBDIR). By default, these are set to `lib/` and `lib/julia/`, respectively. If necessary, you can define them to be anything you want (I have some code in `Make.inc` to set them to `lib/` in the case of `USE_DEBIAN=1`, for example)

* Moves all `lighttpd` modules into `$(JL_LIBDIR)/lighttpd/`. This matches up better with other package managers.

Comments and testing are highly appreciated. I've tested this on an ubuntu box and an OSX box through homebrew, let me know if this breaks anything!