-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
63 lines (50 loc) · 1.14 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
55
56
57
58
59
60
61
62
63
SHELL = /bin/sh
CHMOD = chmod
CP = cp
MV = mv
NOOP = $(SHELL) -c true
RM_F = rm -f
RM_RF = rm -rf
TEST_F = test -f
TOUCH = touch
UMASK_NULL = umask 0
DEV_NULL = > /dev/null 2>&1
MKPATH = mkdir
CAT = cat
MAKE = make
OPEN = open
ECHO = echo
ECHO_N = echo -n
JAVA = java
all :: build
clean :: clean_libs clean_build
clean_libs:
-$(RM_RF) lib
clean_build:
cd framework/ && make clean
build: js qmake phone_debug sis
sis:
cd framework/ && make sis
qmake:
cd framework/ && qmake
emulator_debug:
cd framework/ && make debug-winscw
phone_debug:
cd framework/ && make debug-gcce
phone_release:
cd framework/ && make release-gcce
run: js qmake emulator_debug
cd framework/ && make run
js: lib/phonegap.js
lib/phonegap.js: js/acceleration.js js/accelerometer.js js/debugconsole.js js/geolocation.js js/notification.js js/orientation.js js/position.js
$(RM_RF) lib
$(MKPATH) lib
$(RM_F) $@
$(CAT) js/acceleration.js >> $@
$(CAT) js/accelerometer.js >> $@
$(CAT) js/debugconsole.js >> $@
$(CAT) js/geolocation.js >> $@
$(CAT) js/notification.js >> $@
$(CAT) js/orientation.js >> $@
$(CAT) js/position.js >> $@
$(CP) $@ framework/www/phonegap.js