summaryrefslogtreecommitdiff
blob: 4a6094e14619ec5eb534492ec0d8adbced0671f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Fix to put docs in correct location based on ${PF}
This requires -DPF=${PF} passed to cmake

Also prevent the installation of COPYING

Patch by Kevin McCarthy <signals42@gmail.com>

--- teapot-2.3.0/CMakeLists.txt
+++ teapot-2.3.0/CMakeLists.txt
@@ -99,12 +99,12 @@
 	add_custom_target(pdf DEPENDS teapot.pdf)
 	add_custom_target(html DEPENDS html/index.html)
 	add_custom_target(doc ALL DEPENDS teapot.pdf html/index.html)
-	install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc/teapot FILES_MATCHING PATTERN *.html PATTERN *.png)
-	install(FILES ${CMAKE_CURRENT_BINARY_DIR}/teapot.pdf DESTINATION share/doc/teapot)
-	set(HELPFILE "${CMAKE_INSTALL_PREFIX}/share/doc/teapot/index.html")
+	install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc/${PF} FILES_MATCHING PATTERN *.html PATTERN *.png)
+	install(FILES ${CMAKE_CURRENT_BINARY_DIR}/teapot.pdf DESTINATION share/doc/${PF})
+	set(HELPFILE "${CMAKE_INSTALL_PREFIX}/share/doc/${PF}/html/index.html")
 endif ()
 
-install(FILES COPYING README DESTINATION share/doc/teapot)
+install(FILES README DESTINATION share/doc/${PF})
 install(FILES teapot.1 DESTINATION share/man/man1)
 
 add_custom_target(dist