add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz
COMMAND gzip --stdout --no-name --best ${CMAKE_CURRENT_SOURCE_DIR}/debian/changelog
> ${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz)
-
add_custom_target(changelog ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz)
+add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/feierabend.1.gz
+ COMMAND gzip --stdout --no-name --best ${CMAKE_CURRENT_SOURCE_DIR}/feierabend.1
+ > ${CMAKE_CURRENT_BINARY_DIR}/feierabend.1.gz)
+
+add_custom_target(manpages ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/feierabend.1.gz)
+
set(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
OWNER_READ
OWNER_WRITE
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/debian/copyright
${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz
DESTINATION ${CMAKE_INSTALL_DOCDIR})
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/feierabend.1.gz
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1)
set(CPACK_GENERATOR "DEB")
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
--- /dev/null
+.TH feierabend 1 2026-05-25
+
+.SH NAME
+feierabend - is a tool it calc and print the time to work end time
+without break time.
+
+.SH SYNOPSIS
+feierabend <begin-hour> <begin-minutes> [<end-hour> <end-minutes>]
+
+.SH OPTIONS
+.P
+.EX
+<begin-hour> time to begin hour value from 1 to 23
+<begin-minutes> time to begin minutes value from 0 to 59
+<end-hour> time to end hour value from 1 to 23
+<end-minutes> time to end minutes value from 0 to 59
+.EE
+.P
\ No newline at end of file