forked from sintaxi/phonegap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
139 lines (126 loc) · 7.02 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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 -p
CAT = cat
MAKE = make
OPEN = open
ECHO = echo
ECHO_N = echo -n
JAVA = java
DOXYGEN =
IPHONE_DOCSET_TMPDIR = docs/iphone/tmp
all :: iphone blackberry android docs
clean :: clean_docs clean_libs
clean_docs:
-$(RM_RF) docs/javascript
-$(RM_RF) docs/iphone
clean_libs:
-$(RM_RF) lib
iphone/www/phonegap.js: lib/iphone/phonegap-min.js
$(CP) lib/iphone/phonegap-min.js $@
docs :: javascript_docs iphone_docs
iphone_docs:
javascript_docs :: javascripts/acceleration.js javascripts/accelerometer.js javascripts/camera.js javascripts/contact.js javascripts/debugconsole.js javascripts/device.js javascripts/file.js javascripts/geolocation.js javascripts/compass.js javascripts/map.js javascripts/media.js javascripts/notification.js javascripts/orientation.js javascripts/position.js javascripts/sms.js javascripts/telephony.js javascripts/uicontrols.js
$(JAVA) -jar util/jsdoc-toolkit/jsrun.jar util/jsdoc-toolkit/app/run.js -a -d=docs/javascript -t=util/jsdoc-toolkit/templates/jsdoc javascripts/acceleration.js javascripts/accelerometer.js javascripts/camera.js javascripts/contact.js javascripts/debugconsole.js javascripts/device.js javascripts/file.js javascripts/geolocation.js javascripts/compass.js javascripts/map.js javascripts/media.js javascripts/notification.js javascripts/orientation.js javascripts/position.js javascripts/sms.js javascripts/telephony.js javascripts/uicontrols.js
iphone: lib/iphone/phonegap-min.js
lib/iphone/phonegap-min.js: lib/iphone/phonegap.js
$(JAVA) -jar util/yuicompressor-2.4.2.jar --charset UTF-8 -o $@ lib/iphone/phonegap.js
lib/iphone/phonegap.js: javascripts/phonegap.js.base javascripts/acceleration.js javascripts/accelerometer.js javascripts/camera.js javascripts/contact.js javascripts/debugconsole.js javascripts/device.js javascripts/file.js javascripts/geolocation.js javascripts/compass.js javascripts/map.js javascripts/media.js javascripts/notification.js javascripts/orientation.js javascripts/position.js javascripts/sms.js javascripts/telephony.js javascripts/uicontrols.js javascripts/iphone/accelerometer.js javascripts/iphone/bonjour.js javascripts/iphone/contact.js javascripts/iphone/camera.js javascripts/iphone/debugconsole.js javascripts/iphone/device.js javascripts/iphone/geolocation.js javascripts/iphone/compass.js javascripts/iphone/media.js javascripts/iphone/notification.js javascripts/iphone/phonegap.js javascripts/iphone/uicontrols.js
$(RM_RF) lib/iphone
$(MKPATH) lib/iphone
$(RM_F) $@
$(CAT) javascripts/phonegap.js.base >> $@
$(CAT) javascripts/acceleration.js >> $@
$(CAT) javascripts/accelerometer.js >> $@
$(CAT) javascripts/camera.js >> $@
$(CAT) javascripts/contact.js >> $@
$(CAT) javascripts/debugconsole.js >> $@
$(CAT) javascripts/device.js >> $@
$(CAT) javascripts/file.js >> $@
$(CAT) javascripts/geolocation.js >> $@
$(CAT) javascripts/compass.js >> $@
$(CAT) javascripts/map.js >> $@
$(CAT) javascripts/media.js >> $@
$(CAT) javascripts/notification.js >> $@
$(CAT) javascripts/orientation.js >> $@
$(CAT) javascripts/position.js >> $@
$(CAT) javascripts/sms.js >> $@
$(CAT) javascripts/telephony.js >> $@
$(CAT) javascripts/uicontrols.js >> $@
$(CAT) javascripts/iphone/accelerometer.js >> $@
$(CAT) javascripts/iphone/bonjour.js >> $@
$(CAT) javascripts/iphone/contact.js >> $@
$(CAT) javascripts/iphone/camera.js >> $@
$(CAT) javascripts/iphone/debugconsole.js >> $@
$(CAT) javascripts/iphone/device.js >> $@
$(CAT) javascripts/iphone/geolocation.js >> $@
$(CAT) javascripts/iphone/compass.js >> $@
$(CAT) javascripts/iphone/media.js >> $@
$(CAT) javascripts/iphone/notification.js >> $@
$(CAT) javascripts/iphone/phonegap.js >> $@
$(CAT) javascripts/iphone/uicontrols.js >> $@
blackberry: lib/blackberry/phonegap-min.js
lib/blackberry/phonegap-min.js: lib/blackberry/phonegap.js
$(JAVA) -jar util/yuicompressor-2.4.2.jar --charset UTF-8 -o $@ lib/blackberry/phonegap.js
lib/blackberry/phonegap.js: javascripts/phonegap.js.base javascripts/acceleration.js javascripts/accelerometer.js javascripts/camera.js javascripts/contact.js javascripts/debugconsole.js javascripts/device.js javascripts/file.js javascripts/geolocation.js javascripts/compass.js javascripts/map.js javascripts/media.js javascripts/notification.js javascripts/orientation.js javascripts/position.js javascripts/sms.js javascripts/telephony.js javascripts/uicontrols.js javascripts/blackberry/file.js javascripts/blackberry/geolocation.js
$(RM_RF) lib/blackberry
$(MKPATH) lib/blackberry
$(RM_F) $@
$(CAT) javascripts/phonegap.js.base >> $@
$(CAT) javascripts/acceleration.js >> $@
$(CAT) javascripts/accelerometer.js >> $@
$(CAT) javascripts/camera.js >> $@
$(CAT) javascripts/contact.js >> $@
$(CAT) javascripts/debugconsole.js >> $@
$(CAT) javascripts/device.js >> $@
$(CAT) javascripts/file.js >> $@
$(CAT) javascripts/geolocation.js >> $@
$(CAT) javascripts/compass.js >> $@
$(CAT) javascripts/map.js >> $@
$(CAT) javascripts/media.js >> $@
$(CAT) javascripts/notification.js >> $@
$(CAT) javascripts/orientation.js >> $@
$(CAT) javascripts/position.js >> $@
$(CAT) javascripts/sms.js >> $@
$(CAT) javascripts/telephony.js >> $@
$(CAT) javascripts/uicontrols.js >> $@
$(CAT) javascripts/blackberry/file.js >> $@
$(CAT) javascripts/blackberry/geolocation.js >> $@
android: lib/android/phonegap-min.js
lib/android/phonegap-min.js: lib/android/phonegap.js
$(JAVA) -jar util/yuicompressor-2.4.2.jar --charset UTF-8 -o $@ lib/android/phonegap.js
lib/android/phonegap.js: javascripts/phonegap.js.base javascripts/acceleration.js javascripts/accelerometer.js javascripts/camera.js javascripts/contact.js javascripts/debugconsole.js javascripts/device.js javascripts/file.js javascripts/geolocation.js javascripts/compass.js javascripts/map.js javascripts/media.js javascripts/notification.js javascripts/orientation.js javascripts/position.js javascripts/sms.js javascripts/telephony.js javascripts/uicontrols.js javascripts/android/device.js javascripts/android/geolocation.js javascripts/android/notification.js
$(RM_RF) lib/android
$(MKPATH) lib/android
$(RM_F) $@
$(CAT) javascripts/phonegap.js.base >> $@
$(CAT) javascripts/acceleration.js >> $@
$(CAT) javascripts/accelerometer.js >> $@
$(CAT) javascripts/camera.js >> $@
$(CAT) javascripts/contact.js >> $@
$(CAT) javascripts/debugconsole.js >> $@
$(CAT) javascripts/device.js >> $@
$(CAT) javascripts/file.js >> $@
$(CAT) javascripts/geolocation.js >> $@
$(CAT) javascripts/compass.js >> $@
$(CAT) javascripts/map.js >> $@
$(CAT) javascripts/media.js >> $@
$(CAT) javascripts/notification.js >> $@
$(CAT) javascripts/orientation.js >> $@
$(CAT) javascripts/position.js >> $@
$(CAT) javascripts/sms.js >> $@
$(CAT) javascripts/telephony.js >> $@
$(CAT) javascripts/uicontrols.js >> $@
$(CAT) javascripts/android/device.js >> $@
$(CAT) javascripts/android/geolocation.js >> $@
$(CAT) javascripts/android/notification.js >> $@
$(CAT) javascripts/android/accelerometer.js >> $@