Skip to content

Commit

Permalink
doc: 'make doc' to build the docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ales Kozumplik committed Aug 24, 2012
1 parent 9347fee commit efeb04c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -49,5 +49,6 @@ ENDIF (RPMIO_LIBRARY)
ADD_SUBDIRECTORY (src)
ENABLE_TESTING()
ADD_SUBDIRECTORY (tests)
ADD_SUBDIRECTORY (doc)

CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/package/hawkey.spec.in ${CMAKE_SOURCE_DIR}/package/hawkey.spec @ONLY)
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -20,6 +20,10 @@ From your checkout dir:
cmake ..
make

To build the documentation, from the build/ directory:

make doc

## Building with a custom version of libsolv

Libsolv is checked out at /home/akozumpl/libsolv, built at
Expand Down
5 changes: 5 additions & 0 deletions doc/CMakeLists.txt
@@ -0,0 +1,5 @@
ADD_CUSTOM_TARGET (doc
sphinx-build -b html -b man ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building documentation")

INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/hawkey.1 DESTINATION share/man/man1)

0 comments on commit efeb04c

Please sign in to comment.