]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
add a "binaries" target, fix #135, <3 @zturtleman 144/head
authorThomas Debesse <dev@illwieckz.net>
Tue, 23 Jul 2019 02:21:22 +0000 (04:21 +0200)
committerThomas Debesse <dev@illwieckz.net>
Tue, 23 Jul 2019 02:30:11 +0000 (04:30 +0200)
add a "binaries" target to be able to rebuild everything without
redownloading gamepacks

CMakeLists.txt
README.md

index b93ced263b3aa4c3f84da00d1a81a96d56447097..35ca21d66983b8a9c53e1c2dbdc9c1f3f3366d9b 100644 (file)
@@ -176,6 +176,8 @@ if (BUILD_RADIANT)
 endif ()
 
 if (BUILD_BINARIES)
+    add_custom_target(binaries ALL)
+
     if(APPLE OR ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
         link_directories(
             /usr/local/lib
@@ -267,6 +269,8 @@ if (BUILD_BINARIES)
     endif ()
 
     macro (radiant_tool name)
+        add_dependencies(binaries ${name})
+
         if (BUNDLE_LIBRARIES AND WIN32)
             add_executable(${name} ${ARGN} ${PROJECT_SOURCE_DIR}/include/lib.rc)
         else ()
index d977c242183d706cf7e860523e277e16fd1bdf70..4c0509a97ee5d66d3a61bea2099e5caba37ae4e5 100644 (file)
--- a/README.md
+++ b/README.md
@@ -125,15 +125,16 @@ options:
 
 targets:
 
-* `netradiant` Compiles the netradiant core binary
-* `modules`    Compiles all modules (each module has its own target as well)
-* `plugins`    Compiles all plugins (each plugin has its own target as well)
-* `tools`      Compiles all tools (each tool has its own target as well)
-  - `quake2`   Compiles all the Quake2 tools: `q2map`, `qdata3`
-  - `heretic2` Compiles all the Heretic2 tools: `q2map`, `h2data`
-  - `quake3`   Compiles all the Quake3 tools:
-     * `q3map2` Compiles the quake3 map compiler
-     * `q3data` Compiles the q3data tool
+* `binaries`          Compiles all binaries
+  - `netradiant`      Compiles the netradiant editor
+  - `modules`         Compiles all modules (each module has its own target as well)
+  - `plugins`         Compiles all plugins (each plugin has its own target as well)
+  - `tools`           Compiles all tools (each tool has its own target as well)
+     * `quake2`       Compiles all the Quake2 tools: `q2map`, `qdata3`
+     * `heretic2`     Compiles all the Heretic2 tools: `q2map`, `h2data`
+     * `quake3`       Compiles all the Quake3 tools:
+         - `q3map2`   Compiles the quake3 map compiler
+         - `q3data`   Compiles the q3data tool
 
 Type `make help` to get an exhaustive list of targets.