-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (39 loc) · 1.1 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
ALL_SOURCES=$(wildcard \
com/dongxiguo/hoo/*.hx \
com/dongxiguo/hoo/*/*.hx \
com/dongxiguo/hoo/*/*/*.hx)
all release.zip: \
haxelib.xml \
haxedoc.xml \
run.n \
LICENSE \
$(ALL_SOURCES)
ifeq ($(OS),Windows_NT)
cygpath=$(shell cygpath $(foreach f,$(1),"$(f)"))
else
cygpath=$(1)
endif
run.n: $(wildcard $(call cygpath,$(shell haxelib run haxelib-run print-lib-path)com/dongxiguo/utils/*.hx))
haxe -main com.dongxiguo.utils.HaxelibRun -lib haxelib-run -neko $@
release.zip:
zip --filesync $@ $^
clean:
$(RM) -r bin release.zip run.n haxedoc.xml
test: test-neko test-node bin/HooTest.swf
test-neko: bin/HooTest.n
neko $<
test-node: bin/HooTest.js
node bin/HooTest.js
bin/HooTest.n: $(wildcard tests/*.hx) $(ALL_SOURCES) | bin
haxe -neko $@ -main tests.HooTest
bin/HooTest.swf: $(wildcard tests/*.hx) $(ALL_SOURCES) | bin
haxe -swf $@ -main tests.HooTest
bin/HooTest.js: $(wildcard tests/*.hx) $(ALL_SOURCES) | bin
haxe -js $@ -main tests.HooTest
haxedoc.xml: $(ALL_SOURCES)
haxe -xml $@ $^
bin:
mkdir $@
install: release.zip
haxelib test release.zip
.PHONY: all clean test-neko test-node test install