]> git.xonotic.org Git - xonotic/netradiant.git/blob - Makefile
Drop legacy Makefile
[xonotic/netradiant.git] / Makefile
1 # targets:
2 #   all
3 #   clean
4 #   radiant
5 #   plugins
6 #   game_packs
7 #   q3map2
8
9 .DEFAULT_GOAL := all
10
11 TYPE ?= Release
12
13 BUILD_DIR := install
14
15 CMAKE := cmake
16
17 Makefile:
18         @true
19
20 clean:
21         +$(CMAKE) --build $(BUILD_DIR) --target $@ -- --no-print-directory
22         rm -fr $(BUILD_DIR)
23
24 $(BUILD_DIR)/.ready-$(TYPE):
25         @rm -f $(BUILD_DIR)/.ready-*
26         $(CMAKE) -DCMAKE_BUILD_TYPE=$(TYPE) -G "Unix Makefiles" -H. -B$(BUILD_DIR)
27         @touch $(BUILD_DIR)/.ready-$(TYPE)
28
29 %: $(BUILD_DIR)/.ready-$(TYPE)
30         +$(CMAKE) --build $(BUILD_DIR) --target $@
31
32
33 # deprecated legacy compatibility targets
34
35 install/q3map2: q3map2
36         @true
37 install/q3map2.x86: q3map2
38         @true
39 install/q3map2.x86_64: q3map2
40         @true