File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
- GENERATE_BINDINGS = auto
2
- HEADERS = godot-headers
3
- TARGET = debug
4
- USE_CLANG = no
1
+ TARGET = template_debug
5
2
6
- BASE = scons use_llvm= $( USE_CLANG ) generate_bindings= $( GENERATE_BINDINGS ) target=$(TARGET ) headers= $( HEADERS )
3
+ BASE = scons target=$(TARGET ) $( EXTRA_ARGS )
7
4
LINUX = $(BASE ) platform=linux
8
5
WINDOWS = $(BASE ) platform=windows
9
6
MACOS = $(BASE ) platform=macos
10
7
11
8
12
- all :
13
- make linux
14
- make windows
9
+ .PHONY : usage
10
+ usage :
11
+ @echo -e " Specify one of the available targets:\n"
12
+ # https://stackoverflow.com/a/26339924
13
+ @LC_ALL=C $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/(^|\n)# Files(\n|$$)/,/(^|\n)# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | grep -E -v -e '^[^[:alnum:]]' -e '^$@$$'
14
+ @echo -e "\nDefine the SCons target with TARGET, and pass extra SCons arguments with EXTRA_ARGS."
15
15
16
16
17
17
linux :
18
18
make linux32
19
19
make linux64
20
20
21
21
linux32 : SConstruct
22
- $(LINUX ) bits=32
22
+ $(LINUX ) arch=x86_32
23
23
24
24
linux64 : SConstruct
25
- $(LINUX ) bits=64
25
+ $(LINUX ) arch=x86_64
26
26
27
27
28
28
windows :
29
29
make windows32
30
30
make windows64
31
31
32
32
windows32 : SConstruct
33
- $(WINDOWS ) bits=32
33
+ $(WINDOWS ) arch=x86_32
34
34
35
35
windows64 : SConstruct
36
- $(WINDOWS ) bits=64
36
+ $(WINDOWS ) arch=x86_64
37
37
38
38
39
39
macos : SConstruct
You can’t perform that action at this time.
0 commit comments