blob: 4b40fedbb8423879b0108171fc4ed5206be04a3d (
plain)
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
|
###################################################################################
# VARIABLES
###################################################################################
VERSION = 0.6.3
NICE=10
NICE_CALL = nice -n $(NICE)
RELEASE_BUILD_UNIX = release/temp/build/unix/qooxdoo-$(VERSION)-build
RELEASE_BUILD_DOS = release/temp/build/dos/qooxdoo-$(VERSION)-build
RELEASE_SDK_UNIX = release/temp/sdk/unix/qooxdoo-$(VERSION)-sdk
RELEASE_SDK_DOS = release/temp/sdk/dos/qooxdoo-$(VERSION)-sdk
FIX_FILES = -name "*.py" -o -name "*.sh" -o -name "*.js" -o -name "*.html" -o -name "*.css" -o -name "*.xml" -o -name Makefile -o -name AUTHORS -o -name LICENSE -o -name README -o -name RELEASENOTES -o -name TODO
RSYNC_BUILD_OPT = --recursive --archive --delete
RSYNC_SDK_OPT = $(RSYNC_BUILD_OPT) --exclude script --exclude .svn
RSYNC_BUILD_EXEC = @$(NICE_CALL) rsync $(RSYNC_BUILD_OPT)
RSYNC_SDK_EXEC = @$(NICE_CALL) rsync $(RSYNC_SDK_OPT)
ANY2DOS = | xargs framework/tool/modules/textutil.py --command any2Dos
ANY2UNIX = | xargs framework/tool/modules/textutil.py --command any2Unix
###################################################################################
# DEFAULT TARGET
###################################################################################
all: build
###################################################################################
# COMMON TARGETS
###################################################################################
build:
@$(MAKE) -C api build
@$(MAKE) -C demo build
@$(MAKE) -C framework build
source:
@$(MAKE) -C api source
@$(MAKE) -C demo source
@$(MAKE) -C framework source
api-build:
@$(MAKE) -C api build
demo-build:
@$(MAKE) -C demo build
framework-build:
@$(MAKE) -C framework build
api-source:
@$(MAKE) -C api source
demo-source:
@$(MAKE) -C demo source
framework-source:
@$(MAKE) -C framework source
skeleton-archives:
@$(MAKE) -C skeleton archives
demo-sync:
@$(MAKE) -C demo sync
api-sync:
@$(MAKE) -C api sync
framework-debug:
@$(MAKE) -C framework debug
###################################################################################
# CLEANUP TARGETS
###################################################################################
clean:
@echo
@echo " CLEANUP OF GENERATED FILES"
@echo "----------------------------------------------------------------------------"
@$(MAKE) -C api clean
@$(MAKE) -C demo clean
@$(MAKE) -C framework clean
@$(MAKE) -C skeleton clean
realclean:
@echo
@echo " CLEANUP OF GENERATED FILES (REAL)"
@echo "----------------------------------------------------------------------------"
@echo " * Deleting files..."
@$(MAKE) -C api realclean
@$(MAKE) -C demo realclean
@$(MAKE) -C framework realclean
@$(MAKE) -C skeleton realclean
@echo " * Deleting release temp data..."
@$(NICE_CALL) rm -rf release/temp
distclean:
@echo
@echo " CLEANUP OF GENERATED FILES (DIST)"
@echo "----------------------------------------------------------------------------"
@echo " * Deleting files..."
@$(MAKE) -C api distclean
@$(MAKE) -C demo distclean
@$(MAKE) -C framework distclean
@$(MAKE) -C skeleton distclean
@echo " * Deleting cache..."
@$(NICE_CALL) rm -rf .cache
@echo " * Deleting release archives..."
@$(NICE_CALL) rm -rf release
###################################################################################
# RELEASE TARGETS
###################################################################################
release: release-build release-sdk
release-fast: release-build-fast release-sdk-fast
release-build: build release-build-fast
release-build-fast: release-build-sync release-build-compress
release-build-sync:
@echo
@echo " SYNCHRONISATION OF UNIX BUILD RELEASE"
@echo "----------------------------------------------------------------------------"
@echo " * Copying info files..."
@mkdir -p $(RELEASE_BUILD_UNIX)
@find ../ -maxdepth 1 -type f -name "[A-Z]*" -exec cp -f {} $(RELEASE_BUILD_UNIX) \;
@echo " * Synchronizing Unix build folders..."
@mkdir -p $(RELEASE_BUILD_UNIX)/frontend/api
$(RSYNC_BUILD_EXEC) api/build/* $(RELEASE_BUILD_UNIX)/frontend/api
@mkdir -p $(RELEASE_BUILD_UNIX)/frontend/demo
$(RSYNC_BUILD_EXEC) demo/build/* $(RELEASE_BUILD_UNIX)/frontend/demo
@mkdir -p $(RELEASE_BUILD_UNIX)/frontend/framework
$(RSYNC_BUILD_EXEC) framework/build/* $(RELEASE_BUILD_UNIX)/frontend/framework
@echo " * Fixing line-breaks..."
@$(NICE_CALL) find $(RELEASE_BUILD_UNIX) $(FIX_FILES) $(ANY2UNIX)
@echo
@echo " SYNCHRONISATION OF DOS BUILD RELEASE"
@echo "----------------------------------------------------------------------------"
@echo " * Copying info files..."
@mkdir -p $(RELEASE_BUILD_DOS)
@find ../ -maxdepth 1 -type f -name "[A-Z]*" -exec cp -f {} $(RELEASE_BUILD_DOS) \;
@echo " * Synchronizing DOS build folders..."
@mkdir -p $(RELEASE_BUILD_DOS)/frontend/api
$(RSYNC_BUILD_EXEC) api/build/* $(RELEASE_BUILD_DOS)/frontend/api
@mkdir -p $(RELEASE_BUILD_DOS)/frontend/demo
$(RSYNC_BUILD_EXEC) demo/build/* $(RELEASE_BUILD_DOS)/frontend/demo
@mkdir -p $(RELEASE_BUILD_DOS)/frontend/framework
$(RSYNC_BUILD_EXEC) framework/build/* $(RELEASE_BUILD_DOS)/frontend/framework
@echo " * Fixing line-breaks..."
@$(NICE_CALL) find $(RELEASE_BUILD_DOS) $(FIX_FILES) $(ANY2DOS)
release-build-compress:
@echo
@echo " COMPRESSION OF BUILD RELEASE"
@echo "----------------------------------------------------------------------------"
@echo " * Generating gzip (Unix) archive..."
@cd release/temp/build/unix; rm -f qooxdoo-$(VERSION)-build.tar.gz; $(NICE_CALL) tar cfzp ../../../qooxdoo-$(VERSION)-build.tar.gz qooxdoo-$(VERSION)-build
@echo " * Generating zip (DOS) archive..."
@cd release/temp/build/dos; rm -f qooxdoo-$(VERSION)-build.zip; $(NICE_CALL) zip -rq ../../../qooxdoo-$(VERSION)-build.zip qooxdoo-$(VERSION)-build
release-sdk: source skeleton-archives release-sdk-fast
release-sdk-fast: release-sdk-sync release-sdk-compress
release-sdk-sync:
@echo
@echo " SYNCHRONISATION OF UNIX SDK RELEASE"
@echo "----------------------------------------------------------------------------"
@echo " * Copying info files..."
@mkdir -p $(RELEASE_SDK_UNIX)
@find ../ -maxdepth 1 -type f -name "[A-Z]*" -exec cp -f {} $(RELEASE_SDK_UNIX) \;
@echo " * Copying Makefiles..."
@mkdir -p $(RELEASE_SDK_UNIX)/frontend
@cp -f Makefile $(RELEASE_SDK_UNIX)/frontend
@mkdir -p $(RELEASE_SDK_UNIX)/frontend/api
@cp -f api/Makefile $(RELEASE_SDK_UNIX)/frontend/api
@mkdir -p $(RELEASE_SDK_UNIX)/frontend/demo
@cp -f demo/Makefile $(RELEASE_SDK_UNIX)/frontend/demo
@mkdir -p $(RELEASE_SDK_UNIX)/frontend/framework
@cp -f framework/Makefile $(RELEASE_SDK_UNIX)/frontend/framework
@echo " * Synchronizing source folders..."
@mkdir -p $(RELEASE_SDK_UNIX)/frontend/api/source
$(RSYNC_SDK_EXEC) api/source/* $(RELEASE_SDK_UNIX)/frontend/api/source
@mkdir -p $(RELEASE_SDK_UNIX)/frontend/demo/source
$(RSYNC_SDK_EXEC) demo/source/* $(RELEASE_SDK_UNIX)/frontend/demo/source
@mkdir -p $(RELEASE_SDK_UNIX)/frontend/framework/source
$(RSYNC_SDK_EXEC) framework/source/* $(RELEASE_SDK_UNIX)/frontend/framework/source
@echo " * Synchronizing skeleton folder..."
@mkdir -p $(RELEASE_SDK_UNIX)/frontend/skeleton
$(RSYNC_BUILD_EXEC) skeleton/build/*.tar.gz $(RELEASE_SDK_UNIX)/frontend/skeleton
@echo " * Synchronizing tool folders..."
@mkdir -p $(RELEASE_SDK_UNIX)/frontend/demo/tool
$(RSYNC_SDK_EXEC) demo/tool/* $(RELEASE_SDK_UNIX)/frontend/demo/tool
@$(NICE_CALL) find $(RELEASE_SDK_UNIX)/frontend/demo/tool -name "*.sh" -o -name "*.py" | xargs chmod a+rx
@mkdir -p $(RELEASE_SDK_UNIX)/frontend/framework/tool
$(RSYNC_SDK_EXEC) framework/tool/* $(RELEASE_SDK_UNIX)/frontend/framework/tool
@$(NICE_CALL) find $(RELEASE_SDK_UNIX)/frontend/framework/tool -name "*.sh" -o -name "*.py" | xargs chmod a+rx
@echo " * Fixing line-breaks..."
@$(NICE_CALL) find $(RELEASE_SDK_UNIX) $(FIX_FILES) $(ANY2UNIX)
@echo
@echo " SYNCHRONISATION OF DOS SDK RELEASE"
@echo "----------------------------------------------------------------------------"
@echo " * Copying info files..."
@mkdir -p $(RELEASE_SDK_DOS)
@find ../ -maxdepth 1 -type f -name "[A-Z]*" -exec cp -f {} $(RELEASE_SDK_DOS) \;
@echo " * Copying Makefiles..."
@mkdir -p $(RELEASE_SDK_DOS)/frontend
@cp -f Makefile $(RELEASE_SDK_DOS)/frontend
@mkdir -p $(RELEASE_SDK_DOS)/frontend/api
@cp -f api/Makefile $(RELEASE_SDK_DOS)/frontend/api
@mkdir -p $(RELEASE_SDK_DOS)/frontend/demo
@cp -f demo/Makefile $(RELEASE_SDK_DOS)/frontend/demo
@mkdir -p $(RELEASE_SDK_DOS)/frontend/framework
@cp -f framework/Makefile $(RELEASE_SDK_DOS)/frontend/framework
@echo " * Synchronizing source folders..."
@mkdir -p $(RELEASE_SDK_DOS)/frontend/api/source
$(RSYNC_SDK_EXEC) api/source/* $(RELEASE_SDK_DOS)/frontend/api/source
@mkdir -p $(RELEASE_SDK_DOS)/frontend/demo/source
$(RSYNC_SDK_EXEC) demo/source/* $(RELEASE_SDK_DOS)/frontend/demo/source
@mkdir -p $(RELEASE_SDK_DOS)/frontend/framework/source
$(RSYNC_SDK_EXEC) framework/source/* $(RELEASE_SDK_DOS)/frontend/framework/source
@echo " * Synchronizing skeleton folder..."
@mkdir -p $(RELEASE_SDK_DOS)/frontend/skeleton
$(RSYNC_BUILD_EXEC) skeleton/build/*.zip $(RELEASE_SDK_DOS)/frontend/skeleton
@echo " * Synchronizing tool folders..."
@mkdir -p $(RELEASE_SDK_DOS)/frontend/demo/tool
$(RSYNC_SDK_EXEC) demo/tool/* $(RELEASE_SDK_DOS)/frontend/demo/tool
@$(NICE_CALL) find $(RELEASE_SDK_DOS)/frontend/demo/tool -name "*.sh" -o -name "*.py" | xargs chmod a+rx
@mkdir -p $(RELEASE_SDK_DOS)/frontend/framework/tool
$(RSYNC_SDK_EXEC) framework/tool/* $(RELEASE_SDK_DOS)/frontend/framework/tool
@$(NICE_CALL) find $(RELEASE_SDK_DOS)/frontend/framework/tool -name "*.sh" -o -name "*.py" | xargs chmod a+rx
@echo " * Fixing line-breaks..."
@$(NICE_CALL) find $(RELEASE_SDK_DOS) $(FIX_FILES) $(ANY2DOS)
release-sdk-compress:
@echo
@echo " COMPRESSION OF SDK RELEASE"
@echo "----------------------------------------------------------------------------"
@echo " * Generating gzip (Unix) archive..."
@cd release/temp/sdk/unix; rm -f qooxdoo-$(VERSION)-sdk.tar.gz; $(NICE_CALL) tar cfzp ../../../qooxdoo-$(VERSION)-sdk.tar.gz qooxdoo-$(VERSION)-sdk
@echo " * Generating zip (DOS) archive..."
@cd release/temp/sdk/dos; rm -f qooxdoo-$(VERSION)-sdk.zip; $(NICE_CALL) zip -rq ../../../qooxdoo-$(VERSION)-sdk.zip qooxdoo-$(VERSION)-sdk
|