1 ###################################################################################
3 ###################################################################################
6 GENERATOR=$(FRAMEWORK)/tool/generator.py
7 CACHE=$(FRAMEWORK)/.cache
10 TIMEFLAG = `date +'%s'`
12 ifneq ($(SOURCELOADER),)
13 SOURCELDR = --source-loader-type $(SOURCELOADER)
19 ###################################################################################
21 ###################################################################################
27 ###################################################################################
29 ###################################################################################
31 source: generate-source
34 pretty: generate-pretty
38 ###################################################################################
40 ###################################################################################
44 @echo " CLEANUP OF GENERATED FILES"
45 @echo "----------------------------------------------------------------------------"
46 @echo " * Deleting files..."
47 @rm -f build/script/qx.js source/script/qx.js
51 @echo " CLEANUP OF GENERATED FILES (REAL)"
52 @echo "----------------------------------------------------------------------------"
53 @echo " * Deleting files..."
54 @nice -n $(NICE) rm -rf build source/script
55 @nice -n $(NICE) rm -rf debug-tokens debug-tree
59 @echo " CLEANUP OF GENERATED FILES (DIST)"
60 @echo "----------------------------------------------------------------------------"
61 @echo " * Deleting files..."
62 @nice -n $(NICE) find tool -name "*.pyc" | xargs rm -f
63 @nice -n $(NICE) find . -name "*~" -o -name "*.bak" -o -name "*.old" -o -name "*.compiled" | xargs rm -rf
64 @nice -n $(NICE) rm -rf $(CACHE)
69 ###################################################################################
71 ###################################################################################
74 @chmod u+x $(GENERATOR) && nice -n $(NICE) $(GENERATOR) \
75 --script-input source/class \
76 --generate-compiled-script \
77 --compiled-script-file build/script/qx.js \
79 --optimize-variables \
81 --resource-input source/resource \
82 --resource-output build/resource \
83 --source-script-path ../class \
84 --generate-source-script $(SOURCELDR) \
85 --source-script-file source/script/qx.js \
86 --cache-directory $(CACHE)
89 @chmod u+x $(GENERATOR) && nice -n $(NICE) $(GENERATOR) \
90 --script-input source/class \
91 --generate-compiled-script \
92 --compiled-script-file build/script/qx.js \
94 --optimize-variables \
95 --cache-directory $(CACHE)
98 @chmod u+x $(GENERATOR) && nice -n $(NICE) $(GENERATOR) \
99 --script-input source/class \
101 --resource-input source/resource \
102 --resource-output build/resource \
103 --cache-directory $(CACHE)
106 @chmod u+x $(GENERATOR) && nice -n $(NICE) $(GENERATOR) \
107 --script-input source/class \
108 --generate-compiled-script \
109 --compiled-script-file build/script/qx.js \
111 --optimize-variables \
113 --resource-input source/resource \
114 --resource-output build/resource \
115 --cache-directory $(CACHE)
118 @chmod u+x $(GENERATOR) && nice -n $(NICE) $(GENERATOR) \
119 --script-input source/class \
120 --source-script-path ../class \
121 --generate-source-script $(SOURCELDR) \
122 --source-script-file source/script/qx.js \
123 --cache-directory $(CACHE)
126 @chmod u+x $(GENERATOR) && nice -n $(NICE) $(GENERATOR) \
127 --script-input source/class \
128 --tree-output-directory debug-tree \
130 --cache-directory $(CACHE)
133 @chmod u+x $(GENERATOR) && nice -n $(NICE) $(GENERATOR) \
134 --script-input source/class \
135 --token-output-directory debug-tokens \
137 --cache-directory $(CACHE)
140 @chmod u+x $(GENERATOR) && nice -n $(NICE) $(GENERATOR) \
141 --script-input source/class \
142 --tree-output-directory debug-tree \
143 --token-output-directory debug-tokens \
146 --cache-directory $(CACHE)
149 @chmod u+x $(GENERATOR) && nice -n $(NICE) $(GENERATOR) \
150 --script-input source/class \
152 --cache-directory $(CACHE)
155 @chmod u+x $(GENERATOR) && nice -n $(NICE) $(GENERATOR) \
156 --script-input source/class \
158 --cache-directory $(CACHE)
162 @echo " REVISION BUMP"
163 @echo "----------------------------------------------------------------------------"
164 @echo " * Updating version file..."
165 @tool/modules/tagtool.py source/class/qx/core/Version.js
166 @echo " * Committing to SVN..."
167 @svn commit -m 'Revision bump: Online demo update' source/class/qx/core/Version.js