src/version.h
src/createrepo_c.pc
build/
-doc/html
-doc/latex
+tags
# Other files
-#SET(CMAKE_INSTALL_PREFIX "/")
INSTALL(FILES README.md COPYING
DESTINATION "share/doc/createrepo_c-${VERSION}")
INSTALL(FILES createrepo_c.bash
DESTINATION "/etc/bash_completion.d")
-# Target to generate API documentation with Doxygen
-
-find_package(Doxygen)
-if(DOXYGEN_FOUND)
- add_custom_target(doc
- ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
- COMMENT "Generating API documentation with Doxygen" VERBATIM)
-endif(DOXYGEN_FOUND)
-
-
# Gen manpage
#message("Gen manpage")
+find_package(Doxygen)
+if(DOXYGEN_FOUND)
+ CONFIGURE_FILE("Doxyfile.in.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.in" @ONLY)
+ add_custom_target(doc-c
+ ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.in
+ COMMENT "Building C API documentation with Doxygen" VERBATIM)
+endif(DOXYGEN_FOUND)
+
INSTALL(FILES createrepo_c.8.gz mergerepo_c.8.gz
DESTINATION share/man/man8
COMPONENT bin)
+
+ADD_CUSTOM_TARGET (doc)
+ADD_DEPENDENCIES (doc doc-c)
# This could be handy for archiving the generated documentation or
# if some version control system is used.
-PROJECT_NUMBER =
+PROJECT_NUMBER = @VERSION@
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer
# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
-OUTPUT_DIRECTORY = doc/
+OUTPUT_DIRECTORY =
# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
# 4096 sub-directories (in 2 levels) under the output directory of each output
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
-INPUT = src
+INPUT = @CMAKE_SOURCE_DIR@/src
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
cp --verbose README.md $DIRECTORY
cp --verbose COPYING $DIRECTORY
cp --verbose createrepo_c.bash $DIRECTORY
- cp --verbose Doxyfile.in $DIRECTORY
cp --verbose VERSION.cmake $DIRECTORY
cp --verbose --parents cmake/Modules/* $DIRECTORY
cp --verbose --parents doc/CMakeLists.txt $DIRECTORY
+ cp --verbose --parents doc/Doxyfile.in.in $DIRECTORY
cp --verbose --parents doc/createrepo_c.8.* $DIRECTORY
cp --verbose --parents doc/mergerepo_c.8.* $DIRECTORY