-
Notifications
You must be signed in to change notification settings - Fork 0
/
.makefiles
61 lines (56 loc) · 1.5 KB
/
.makefiles
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
# default to no support, each version must explicitly enable support
SUPPORT_IDMAP := no
SUPPORT_BLOCKS := no
VER := $(v)
ifeq ($(VER),147)
DOTVER := 1.4.7
GRADLE := no
ASSETS := mods
SUPPORT_IDMAP := yes
else ifeq ($(VER),152)
DOTVER := 1.5.2
GRADLE := no
ASSETS := mods
SUPPORT_IDMAP := yes
else ifeq ($(VER),164)
DOTVER := 1.6.4
GRADLE := no
ASSETS := assets
SUPPORT_IDMAP := yes
SUPPORT_BLOCKS := yes
else ifeq ($(VER),172)
DOTVER := 1.7.2
GRADLE := yes
ASSETS := assets
SUPPORT_BLOCKS := $(shell [ "$(t)" != "" ] && echo "yes" || echo "no")
else ifeq ($(VER),17A)
DOTVER := 1.7.A
GRADLE := yes
ASSETS := assets
SUPPORT_BLOCKS := $(shell [ "$(t)" != "" ] && echo "yes" || echo "no")
else
$(error No version specified, call with v=147|152|164|172|17A, optionally call with t=1 to enable unsupported mods)
endif
ifeq ($(GRADLE),no)
BASE := /home/mcdev/forge-$(DOTVER)/mcp
SRC := $(BASE)/src/minecraft
# AT := $(BASE)/???
APIJAR := $(BASE)/lib
APISRC := $(SRC)
REOBF := $(BASE)/reobf/minecraft
else
BASE := /home/mcdev/forge-$(DOTVER)
SRC := $(BASE)/src/main/java
AT := $(BASE)/src/main/resources
APIJAR := $(BASE)/lib
APISRC := $(BASE)/src/api/java
REOBF := $(BASE)/au_classes
endif
P := $(PWD)
ifneq ($(r),)
NOW := $(shell /bin/date +%Y)$(shell /bin/date +%m)$(shell /bin/date +%d)-r$(r)
else
NOW := $(shell /bin/date +%Y)$(shell /bin/date +%m)$(shell /bin/date +%d)-$(shell /bin/date +%H)$(shell /bin/date +%M)
endif
AUMOD := au_$(MOD)
#MODUPPER := $(shell export m=$(MOD) ; echo $${m^})