-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (35 loc) · 1.76 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
PACKAGER_URL := https://raw.githubusercontent.com/BigWigsMods/packager/eca4e176cd6ae5404c66bef5c11c08200a458400/release.sh
PRODUCTS := wow_classic wow_classic_beta wow_classic_ptr wow_classic_era wow_classic_era_ptr wow wow_beta wowt wowxptr
.PHONY: all check dist deps libs $(PRODUCTS)
.DEFAULT: all
.DELETE_ON_ERROR:
.FORCE:
all: wow wow_classic wow_classic_era
check:
luacheck -q $(shell git ls-files '*.lua' ':!:Exporter/Libs/')
deps: Exporter/Libs/sqlite3/csv.so
dist:
curl -s $(PACKAGER_URL) | bash -s -- -d
libs:
curl -s $(PACKAGER_URL) | bash -s -- -cdlz
cp -aTv .release/LibRPMedia/Libs Libs
wow_classic: deps
lrpm-export --product=$@ --manifest=Exporter/Data/Cata.lua --database=LibRPMediaData_Cata.lua
wow_classic_beta: deps
lrpm-export --product=$@ --manifest=Exporter/Data/Cata.lua --database=LibRPMediaData_Cata.lua
wow_classic_ptr: deps
lrpm-export --product=$@ --manifest=Exporter/Data/Cata.lua --database=LibRPMediaData_Cata.lua
wow_classic_era: deps
lrpm-export --product=$@ --manifest=Exporter/Data/Vanilla.lua --database=LibRPMediaData_Vanilla.lua
wow_classic_era_ptr: deps
lrpm-export --product=$@ --manifest=Exporter/Data/Vanilla.lua --database=LibRPMediaData_Vanilla.lua
wow: deps
lrpm-export --product=$@ --manifest=Exporter/Data/Mainline.lua --database=LibRPMediaData_Mainline.lua
wow_beta: deps
lrpm-export --product=$@ --manifest=Exporter/Data/Mainline.lua --database=LibRPMediaData_Mainline.lua
wowt: deps
lrpm-export --product=$@ --manifest=Exporter/Data/Mainline.lua --database=LibRPMediaData_Mainline.lua
wowxptr: deps
lrpm-export --product=$@ --manifest=Exporter/Data/Mainline.lua --database=LibRPMediaData_Mainline.lua
Exporter/Libs/sqlite3/csv.so: Exporter/Libs/sqlite3/csv.c
$(CC) -fPIC -O2 -shared -Wl,--no-as-needed -lsqlite3 $< -o $@