convert doc/Makefile to CMake #119

Merged
merged 1 commit into from Jan 14, 2013

Conversation

Projects
None yet
4 participants
@kljohann
Member

kljohann commented Jan 14, 2013

  • CMake will build the pdf version of the manual if texi2pdf is installed.
    It will be installed to DOCDIR/ledger{,3}.pdf, for example
    /usr/local/share/ledger/ledger3.pdf.
    Also, the man page will be installed to MANDIR/man1/ledger.1.
  • The option BUILD_DOCS is now on by default.
  • A new option BUILD_WEB_DOCS is used to toggle the generation
    of the html version of the manual and the man page (off by default).
  • All this is added to the doc make target.

Note that the man2html rule is untested as I don't have that program.

convert doc/Makefile to CMake
CMake will build the pdf version of the manual if texi2pdf is installed.
It will be installed to DOCDIR/ledger{,3}.pdf, for example
/usr/local/share/ledger/ledger3.pdf.
Also, the man page will be installed to MANDIR/man1/ledger.1

The option BUILD_DOCS is now on by default.

A new option BUILD_WEB_DOCS is used to toggle the generation
of the html version of the manual and the man page (off by default).

All this is added to the 'doc' make target.

jwiegley added a commit that referenced this pull request Jan 14, 2013

Merge pull request #119 from kljohann/cmake.docs
convert doc/Makefile to CMake

@jwiegley jwiegley merged commit bf8b7e4 into ledger:next Jan 14, 2013

@kljohann

This comment has been minimized.

Show comment Hide comment
@kljohann

kljohann Jan 14, 2013

Member

Oh, seems like there are issues when build dir≠source dir. I will send a patch in a bit.

Member

kljohann commented Jan 14, 2013

Oh, seems like there are issues when build dir≠source dir. I will send a patch in a bit.

@simonmichael

This comment has been minimized.

Show comment Hide comment
@simonmichael

simonmichael Jan 29, 2013

Member

Hi Johann, can you give me instructions for building the web docs from a clean working copy, and I will fix the website which has not been building ledger 3 docs since this change. Here or on #ledger is fine. Thanks! -sm

Member

simonmichael commented on c88862f Jan 29, 2013

Hi Johann, can you give me instructions for building the web docs from a clean working copy, and I will fix the website which has not been building ledger 3 docs since this change. Here or on #ledger is fine. Thanks! -sm

This comment has been minimized.

Show comment Hide comment
@enderw88

enderw88 Jan 29, 2013

Member
Member

enderw88 replied Jan 29, 2013

This comment has been minimized.

Show comment Hide comment
@kljohann

kljohann Jan 29, 2013

Member

Try running acprep [...] configure -- -DBUILD_WEB_DOCS=1make doc/ninja doc

Member

kljohann replied Jan 29, 2013

Try running acprep [...] configure -- -DBUILD_WEB_DOCS=1make doc/ninja doc

This comment has been minimized.

Show comment Hide comment
@kljohann

kljohann Jan 29, 2013

Member

From IRC: Run ./acprep --output=. configure -- -DBUILD_WEB_DOCS=1 && make doc to build documentation in doc/.

Member

kljohann replied Jan 29, 2013

From IRC: Run ./acprep --output=. configure -- -DBUILD_WEB_DOCS=1 && make doc to build documentation in doc/.

This comment has been minimized.

Show comment Hide comment
@kljohann

kljohann Jan 30, 2013

Member

With the latest changes to acprep:

./acprep make doc -- -DBUILD_WEB_DOCS=1

should work.

Member

kljohann replied Jan 30, 2013

With the latest changes to acprep:

./acprep make doc -- -DBUILD_WEB_DOCS=1

should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment