-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
114 lines (100 loc) · 2.82 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
SHELL:=/bin/bash
# Version tag for this release, should match the current tag in Git
TAG:=1.0-beta3
VERSION:=$(shell git rev-parse --git-dir > /dev/null 2>&1 && echo "git" || echo "release")
isgittree = $(filter "${VERSION}","git")
VERSION_NUMBER:=$(if $(call isgittree),$(shell git describe --tags --abbrev=0),"${TAG}")
formatdate = $(shell LC_ALL=C date -d "$1" "+%a %d %b %Y %H:%M")
DATE:=$(if $(call isgittree),$(call formatdate,$(wordlist 1,2,$(shell git log --pretty=format:'%ai' -1))),$(call formatdate,$(wordlist 1,2,$(shell find . -type f -printf '%TY-%Tm-%Td %TH:%TM %P\n' | sort -n | tail -1))))
VERSION:=$(if $(call isgittree),$(shell git diff-index --quiet HEAD -- && echo "${VERSION}" || echo "${VERSION}+dev"),"${VERSION}")
QCC:=./fteqcc
SRC = \
ss/client.qc \
ss/gmapn_aliasstuffer.qc \
ss/gmapn_anticheat.qc \
ss/gmapn_config.qc \
ss/gmapn_countdown.qc \
ss/gmapn_disconnected.qc \
ss/gmapn_game.qc \
ss/gmapn_help.qc \
ss/gmapn_hazards.qc \
ss/gmapn_http.qc \
ss/gmapn_init.qc \
ss/gmapn_keys.qc \
ss/gmapn_latency.qc \
ss/gmapn_lightstyle.qc \
ss/gmapn_mapvote.qc \
ss/gmapn_menu.qc \
ss/gmapn_misc.qc \
ss/gmapn_powerups.qc \
ss/gmapn_qsg.qc \
ss/gmapn_reset.qc \
ss/gmapn_rpickup.qc \
ss/gmapn_rules.qc \
ss/gmapn_usercmd.qc \
ss/gmapn_sql.qc \
ss/gmapn_stats.qc \
ss/gmapn_subs.qc \
ss/gmapn_vote.qc \
ss/gmapn_votefuncs.qc \
ss/spectate.qc \
ss/world.qc \
ss/defs/builtins.qc \
ss/defs/constants.qc \
ss/defs/fields.qc \
ss/defs/fteextensions.qc \
ss/defs/functions.qc \
ss/defs/globals.qc \
ss/defs/system.qc \
ss/entities/ammo.qc \
ss/entities/armor.qc \
ss/entities/buttons.qc \
ss/entities/doors.qc \
ss/entities/health.qc \
ss/entities/init.qc \
ss/entities/items.qc \
ss/entities/keys.qc \
ss/entities/monsters.qc \
ss/entities/plats.qc \
ss/entities/powerups.qc \
ss/entities/teleports.qc \
ss/entities/trains.qc \
ss/entities/triggers.qc \
ss/entities/weapons.qc \
ss/frikbot/bot.qc \
ss/frikbot/bot_ai.qc \
ss/frikbot/bot_ed.qc \
ss/frikbot/bot_fight.qc \
ss/frikbot/bot_misc.qc \
ss/frikbot/bot_move.qc \
ss/frikbot/bot_phys.qc \
ss/frikbot/bot_way.qc \
ss/models/player.qc \
ss/monsters/ai.qc \
ss/monsters/boss.qc \
ss/monsters/demon.qc \
ss/monsters/dog.qc \
ss/monsters/enforcer.qc \
ss/monsters/fight.qc \
ss/monsters/fish.qc \
ss/monsters/hknight.qc \
ss/monsters/knight.qc \
ss/monsters/monsters.qc \
ss/monsters/ogre.qc \
ss/monsters/oldone.qc \
ss/monsters/shalrath.qc \
ss/monsters/shambler.qc \
ss/monsters/soldier.qc \
ss/monsters/tarbaby.qc \
ss/monsters/wizard.qc \
ss/monsters/zombie.qc
../cspree/qwprogs.dat: $(SRC)
#{ echo "#define VERSION \"${VERSION_NUMBER} ${VERSION}\""; echo "#define DATE \"${DATE}\""; } > version.qc
$(QCC)
ctags: $(SRC)
ctags $^
etags: $(SRC)
etags $^
clean:
rm -f qwprogs.dat qwprogs.lno
all: ../cspree/qwprogs.dat