build and install with cmake: system wide & into source tree#40
Open
Fuddl1 wants to merge 10 commits intoteddych:masterfrom
Open
build and install with cmake: system wide & into source tree#40Fuddl1 wants to merge 10 commits intoteddych:masterfrom
Fuddl1 wants to merge 10 commits intoteddych:masterfrom
Conversation
This makes it clearer how items are related. This is an edit of Edwoud's work, but leaves the "chunked HTML" as is. pandoc is not that straight-forward to handle when it works in 'chunked HTML mode'.
Instead of using a custom command, this uses the built in functionality.
Replaces white space indention by tabs.
Install according to paths defined in cmake's GNUInstallDir module. Add option INSTALL_IN_PLACE=1 for cmake builds that makes cmake --install install right into the source tree. Off by default. To make that work, make the server read its HTML files from a compile-time defined directory. In cmake builds, that is adjusted automatically for system-wide and source tree installations. Hard-wire it unconditionally to ./html because there is no support for system wide installation, anyway.
Extended English and German translations. Mention optional installation into the working copy, as a "developer mode". TODO: Spanish translation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable via cmake the installation either into a GNU directory structure or optionally into the working copy, like a "developer mode".
The GNU Makefile is updated to keep backwards compatibility, as this turns the path to HTML files into a compile-time variable.
To install into the working copy, I re-used Edwourd's idea to overwrite respective internal variables of cmake conditionally when built with
COMPILING*.md describes compiling with cmake and the optional installation into the working copy.