Mercurial > hg > nginx-site
comparison GNUmakefile @ 190:c52987a234e2
More tweaks to support operating under non-root.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 22 Nov 2011 10:59:23 +0000 |
parents | d87e97c0a3e4 |
children | eaaf65085bda |
comparison
equal
deleted
inserted
replaced
189:f9db3712d47d | 190:c52987a234e2 |
---|---|
5 NGINX_ORG = /data/www/nginx.org | 5 NGINX_ORG = /data/www/nginx.org |
6 SHELL = ./umasked.sh | 6 SHELL = ./umasked.sh |
7 | 7 |
8 CP = /data/sites/java/xsls/\*:$(HOME)/java/xsls/\* | 8 CP = /data/sites/java/xsls/\*:$(HOME)/java/xsls/\* |
9 RSYNC = rsync -v -rpc --exclude=.svn | 9 RSYNC = rsync -v -rpc --exclude=.svn |
10 CHMOD = /bin/chmod -R g+w | 10 CHMOD = /bin/chmod -R g=u |
11 | 11 |
12 | 12 |
13 define XSLScript | 13 define XSLScript |
14 java -cp $(CP) \ | 14 java -cp $(CP) \ |
15 com.pault.StyleSheet \ | 15 com.pault.StyleSheet \ |
181 .PHONY: gzip | 181 .PHONY: gzip |
182 gzip: rsync_gzip | 182 gzip: rsync_gzip |
183 $(MAKE) do_gzip | 183 $(MAKE) do_gzip |
184 | 184 |
185 rsync_gzip: | 185 rsync_gzip: |
186 $(CHMOD) $(OUT)/ | 186 $(CHMOD) $(OUT) $(TEXT) |
187 $(RSYNC) --delete --exclude='*.gz' $(OUT)/ $(TEXT)/ $(ZIP)/ | 187 $(RSYNC) --delete --exclude='*.gz' $(OUT)/ $(TEXT)/ $(ZIP)/ |
188 | 188 |
189 do_gzip: $(addsuffix .gz, $(wildcard $(ZIP)/*.html)) \ | 189 do_gzip: $(addsuffix .gz, $(wildcard $(ZIP)/*.html)) \ |
190 $(addsuffix .gz, \ | 190 $(addsuffix .gz, \ |
191 $(foreach lang, $(LANGS), \ | 191 $(foreach lang, $(LANGS), \ |
208 rm -f $<.gz | 208 rm -f $<.gz |
209 gzip -9cn $< > $<.gz | 209 gzip -9cn $< > $<.gz |
210 touch -r $< $<.gz | 210 touch -r $< $<.gz |
211 | 211 |
212 draft: all | 212 draft: all |
213 $(CHMOD) $(OUT)/ | 213 $(CHMOD) $(OUT) |
214 $(RSYNC) --delete $(OUT)/ $(NGINX_ORG)/$(OUT)/ | 214 $(RSYNC) --delete $(OUT)/ $(NGINX_ORG)/$(OUT)/ |
215 | 215 |
216 .PHONY: binary | 216 .PHONY: binary |
217 binary: | 217 binary: |
218 $(CHMOD) binary | |
218 $(RSYNC) binary/ $(NGINX_ORG)/ | 219 $(RSYNC) binary/ $(NGINX_ORG)/ |
219 | 220 |
220 copy: | 221 copy: |
221 $(CHMOD) $(ZIP) | 222 $(CHMOD) $(ZIP) binary |
222 $(RSYNC) $(ZIP)/ binary/ $(NGINX_ORG)/ | 223 $(RSYNC) $(ZIP)/ binary/ $(NGINX_ORG)/ |
223 $(RSYNC) --delete $(foreach lang, $(LANGS), $(ZIP)/$(lang)) \ | 224 $(RSYNC) --delete $(foreach lang, $(LANGS), $(ZIP)/$(lang)) \ |
224 $(NGINX_ORG)/ | 225 $(NGINX_ORG)/ |
225 | 226 |
226 dev: xslt/development.xslt sign | 227 dev: xslt/development.xslt sign |