-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathMakefile
executable file
·66 lines (48 loc) · 1.56 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
ifndef CSGOSL_ROOT
$(error CSGOSL_ROOT is not set, source env.sh in root directory)
endif
# When just fixing csgosl stuff: make
# When updating sourcemod/metamod/other mods: make clean-mods && make install-mods && make
# When installing from scratch: make install && make
OUT=$(CSGOSL_ROOT)/out
CONTRIBOUT=$(CSGOSL_ROOT)/contribs.txt
CONTRIBOUTTCL=$(CSGOSL_ROOT)/src/contribs.tcl
all: clean contribs windows linux
install-devtools:
$(MAKE) -C devtools/linux
$(MAKE) -C devtools/windows
install-mods:
$(MAKE) -C mods/linux
$(MAKE) -C mods/windows
install-cfgs:
$(MAKE) -C cfgs
install: install-devtools install-mods install-cfgs
clean-devtools:
$(MAKE) -C devtools/linux clean
$(MAKE) -C devtools/windows clean
clean-mods:
$(MAKE) -C mods/linux clean
$(MAKE) -C mods/windows clean
clean-cfgs:
$(MAKE) -C cfgs clean
install-clean: clean-devtools clean-mods clean-cfgs
contribs:
$(MAKE) --silent contribs-doit > $(CONTRIBOUT)
devtools/contrib.sh < $(CONTRIBOUT) > $(CONTRIBOUTTCL)
contribs-doit:
$(MAKE) -C devtools/linux contribs
$(MAKE) -C devtools/windows contribs
$(MAKE) -C mods/linux contribs
$(MAKE) -C mods/windows contribs
$(MAKE) -C cfgs contribs
zip:
(cd .. ; tar czvpf csgosl-`date +"%Y%m%d-%H%M%S"`.tgz --exclude csgosl/.git csgosl)
windows: src/cvars.tcl
devtools/build.sh . windows $(OUT)/windows/csgosl
linux: src/cvars.tcl
devtools/build.sh . linux $(OUT)/linux/csgosl
clean:
\rm -rf $(OUT) >/dev/null 2>&1
find . -name *~ -exec \rm -f {} \;
src/cvars.tcl: devtools/cvarslist.txt
devtools/cvarslist2tcl.sh devtools/cvarslist.txt > src/cvars.tcl