forked from Extraordinary-Beat-X/ebx-data
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
71 lines (54 loc) · 973 Bytes
/
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
#
# Package data
#
ZIP:=zip
MKDIR:=mkdir
CP:=cp
CD=cd
RM:= rm -f
BUILD_DIR:=packaged
TARGETS := $(BUILD_DIR)/assets0.pk3 $(BUILD_DIR)/assets2.pk3 nonzipped
# Non-zipped
FILES := \
description.txt
# Zipped
ASSETS := \
botfiles \
fonts \
gfx \
icons \
levelshots \
maps \
menu \
models \
music \
scripts \
sound \
sprites \
team_icon \
textures \
ui \
CC-BY-SA-3.0.txt \
COPYRIGHTS.txt \
default.cfg \
gameinfo.txt \
M+FONTS_LICENSE.txt \
teaminfo.txt \
windowicon.png \
windowicon32.png
# Zipped 2
ASSETS2 := \
mint-game.settings
all: $(TARGETS)
makedirs:
@if [ ! -d $(BUILD_DIR) ];then $(MKDIR) $(BUILD_DIR);fi
$(BUILD_DIR)/assets0.pk3: makedirs
@$(ZIP) -qor $@ $(ASSETS)
$(BUILD_DIR)/assets2.pk3: makedirs
@$(ZIP) -qor $@ $(ASSETS2)
nonzipped: makedirs
@$(CP) -r $(FILES) $(BUILD_DIR)
clean:
$(RM) $(BUILD_DIR)/assets0.pk3 $(BUILD_DIR)/assets2.pk3
$(CD) $(BUILD_DIR) ; $(RM) -r $(FILES)
.PHONY: all makedirs nonzipped clean