Bladeren bron

install man pages for programs only if we're building those programs

ambrop7 14 jaren geleden
bovenliggende
commit
571bda95af
5 gewijzigde bestanden met toevoegingen van 10 en 4 verwijderingen
  1. 0 4
      CMakeLists.txt
  2. 5 0
      client/CMakeLists.txt
  3. 0 0
      client/badvpn-client.8
  4. 5 0
      server/CMakeLists.txt
  5. 0 0
      server/badvpn-server.8

+ 0 - 4
CMakeLists.txt

@@ -173,10 +173,6 @@ install(
     FILES badvpn.7
     DESTINATION share/man/man7
 )
-install(
-    FILES badvpn-server.8 badvpn-client.8
-    DESTINATION share/man/man8
-)
 
 # reset variables indicating whether we're building various libraries,
 # and set them in the respective CMakeLists files. This is used to disable

+ 5 - 0
client/CMakeLists.txt

@@ -23,3 +23,8 @@ install(
     TARGETS badvpn-client
     RUNTIME DESTINATION bin
 )
+
+install(
+    FILES badvpn-client.8
+    DESTINATION share/man/man8
+)

+ 0 - 0
badvpn-client.8 → client/badvpn-client.8


+ 5 - 0
server/CMakeLists.txt

@@ -5,3 +5,8 @@ install(
     TARGETS badvpn-server
     RUNTIME DESTINATION bin
 )
+
+install(
+    FILES badvpn-server.8
+    DESTINATION share/man/man8
+)

+ 0 - 0
badvpn-server.8 → server/badvpn-server.8