1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Add UNIX man pages to aid package creators.

This commit is contained in:
Juhani Numminen 2012-01-29 11:53:39 +02:00 committed by Perttu Ahola
parent 79326e6287
commit a5f6d65c37
3 changed files with 124 additions and 0 deletions

View file

@ -63,6 +63,7 @@ elseif(UNIX) # Linux, BSD etc
set(DATADIR "share/${PROJECT_NAME}")
set(BINDIR "bin")
set(DOCDIR "share/doc/${PROJECT_NAME}")
set(MANDIR "share/man")
set(EXAMPLE_CONF_DIR "share/doc/${PROJECT_NAME}")
set(XDG_APPS_DIR "share/applications")
set(ICONDIR "share/icons")
@ -73,6 +74,7 @@ install(FILES "doc/changelog.txt" DESTINATION "${DOCDIR}")
install(FILES "minetest.conf.example" DESTINATION "${DOCDIR}")
if(UNIX)
install(FILES "doc/minetest.6" "doc/minetestserver.6" DESTINATION "${MANDIR}/man6")
install(FILES "misc/minetest.desktop" DESTINATION "${XDG_APPS_DIR}")
install(FILES "minetest-icon.svg" DESTINATION "${ICONDIR}/hicolor/scalable/apps")
endif()