-
Notifications
You must be signed in to change notification settings - Fork 1
/
GNUmakefile
40 lines (31 loc) · 1.12 KB
/
GNUmakefile
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
RUNTIME := runtime/Ins.j runtime/Interpreter.j runtime/Table.j runtime/Value.j
RUNTIME += runtime/Context.j runtime/StringTable.j runtime/List.j runtime/Print.j
RUNTIME += runtime/Types.j runtime/Builtins.j runtime/Wrap.j runtime/Call.j
RUNTIME += runtime/GC.j runtime/Deque.j runtime/Helper.j runtime/Main.j
RUNTIME += runtime/Builtin/Coroutine.j
RUNTIME += runtime/Builtin/Trigger.j
RUNTIME += runtime/Builtin/Timer.j
RUNTIME += runtime/Builtin/Boolexpr.j
RUNTIME += runtime/Builtin/Math.j
RUNTIME += runtime/Builtin/Table.j
.PHONY: check clean
.PHONY: start-wc3 update-wc3
.PHONY: lua2jass.exe
check: war3map.j
pjass $$commonj Blizzard.j war3map.j
clean:
rm -f war3map.j lua2jass.j
lua2jass.j: test.lua $(RUNTIME)
runhaskell Main.hs -- $$commonj $< $@
war3map.j: lua2jass.j scaffold.j main.j
cat $^ > $@
start-wc3: war3map.j
rm -f ~/Library/Application\ Support/Blizzard/Warcraft\ III/CustomMapData/JHCR*.txt
jhcr-start "$<"
update-wc3: war3map.j
jhcr-update "$<"
lua2jass.exe:
rm -f $@
cabal build --allow-newer lua2jass
strip $$(cabal list-bin --allow-newer lua2jass)
upx -qq $$(cabal list-bin --allow-newer lua2jass) -o $@