From: Thomas Debesse Date: Tue, 23 Jul 2019 02:21:22 +0000 (+0200) Subject: add a "binaries" target, fix #135, <3 @zturtleman X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9fff8bf6e6aa92efb7ee5bbe4809bca76d9eacf0;p=xonotic%2Fnetradiant.git add a "binaries" target, fix #135, <3 @zturtleman add a "binaries" target to be able to rebuild everything without redownloading gamepacks --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b93ced26..35ca21d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 () diff --git a/README.md b/README.md index d977c242..4c0509a9 100644 --- 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.