Mercurial > hg > nginx-quic
annotate misc/GNUmakefile @ 833:dbc6819acfcc
$r->variable
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 31 Oct 2006 14:46:48 +0000 |
parents | a452a0e13539 |
children | 8d77ff798f5c |
rev | line source |
---|---|
681 | 1 |
775 | 2 VER= $(shell grep 'define NGINX_VERSION' src/core/nginx.h \ |
3 | sed -e 's/^.*\"\(.*\)\"/\1/') | |
681 | 4 NGINX= nginx-$(VER) |
5 TEMP= tmp | |
6 | |
7 | |
8 release: | |
9 rm -rf $(TEMP) | |
10 | |
11 svn export -rHEAD . $(TEMP)/$(NGINX) | |
12 | |
13 mv $(TEMP)/$(NGINX)/auto/configure $(TEMP)/$(NGINX) | |
14 | |
15 # delete incomplete sources | |
16 rm $(TEMP)/$(NGINX)/src/event/ngx_event_acceptex.c | |
17 rm $(TEMP)/$(NGINX)/src/event/ngx_event_connectex.c | |
18 rm $(TEMP)/$(NGINX)/src/event/modules/ngx_iocp_module.* | |
19 rm -r $(TEMP)/$(NGINX)/src/os/win32 | |
20 | |
21 rm $(TEMP)/$(NGINX)/src/core/ngx_slab.* | |
22 rm $(TEMP)/$(NGINX)/src/core/ngx_resolver.* | |
23 | |
24 rm -r $(TEMP)/$(NGINX)/src/mysql | |
25 | |
26 rm $(TEMP)/$(NGINX)/src/http/modules/ngx_http_status_module.c | |
27 | |
28 mv $(TEMP)/$(NGINX)/docs/text/LICENSE $(TEMP)/$(NGINX) | |
29 mv $(TEMP)/$(NGINX)/docs/text/README $(TEMP)/$(NGINX) | |
30 mv $(TEMP)/$(NGINX)/docs/html $(TEMP)/$(NGINX) | |
31 | |
32 $(MAKE) -f docs/GNUmakefile changes | |
33 | |
34 rm -r $(TEMP)/$(NGINX)/docs | |
35 rm -r $(TEMP)/$(NGINX)/misc | |
36 | |
704
58bd27d72519
fix bug introduced with snapshot support
Igor Sysoev <igor@sysoev.ru>
parents:
701
diff
changeset
|
37 tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX) |
58bd27d72519
fix bug introduced with snapshot support
Igor Sysoev <igor@sysoev.ru>
parents:
701
diff
changeset
|
38 |
701 | 39 |
40 snapshot: | |
41 rm -rf $(TEMP) | |
42 | |
43 mkdir -p $(TEMP) | |
44 svn export . $(TEMP)/$(NGINX) | |
45 | |
46 mv $(TEMP)/$(NGINX)/auto/configure $(TEMP)/$(NGINX) | |
47 | |
48 # delete incomplete sources | |
49 rm $(TEMP)/$(NGINX)/src/event/ngx_event_acceptex.c | |
50 rm $(TEMP)/$(NGINX)/src/event/ngx_event_connectex.c | |
51 rm $(TEMP)/$(NGINX)/src/event/modules/ngx_iocp_module.* | |
52 rm -r $(TEMP)/$(NGINX)/src/os/win32 | |
53 | |
54 rm $(TEMP)/$(NGINX)/src/core/ngx_slab.* | |
55 rm $(TEMP)/$(NGINX)/src/core/ngx_resolver.* | |
56 | |
57 rm -r $(TEMP)/$(NGINX)/src/mysql | |
58 | |
59 rm $(TEMP)/$(NGINX)/src/http/modules/ngx_http_status_module.c | |
60 | |
61 mv $(TEMP)/$(NGINX)/docs/text/LICENSE $(TEMP)/$(NGINX) | |
62 mv $(TEMP)/$(NGINX)/docs/text/README $(TEMP)/$(NGINX) | |
63 mv $(TEMP)/$(NGINX)/docs/html $(TEMP)/$(NGINX) | |
64 | |
65 $(MAKE) -f docs/GNUmakefile changes | |
66 | |
67 rm -r $(TEMP)/$(NGINX)/docs | |
68 rm -r $(TEMP)/$(NGINX)/misc | |
69 | |
681 | 70 tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX) |
71 | |
72 | |
73 icons: src/os/win32/nginx.ico src/os/win32/nginx_tray.ico | |
74 | |
75 # 32x32 and 16x16 icons | |
76 | |
77 src/os/win32/nginx.ico: src/os/win32/nginx_icon32.xpm \ | |
78 src/os/win32/nginx_icon16.xpm | |
79 | |
80 test -d $(TEMP) || mkdir $(TEMP) | |
81 | |
82 xpmtoppm --alphaout=$(TEMP)/nginx32.pbm \ | |
83 src/os/win32/nginx_icon32.xpm > $(TEMP)/nginx32.ppm | |
84 | |
85 xpmtoppm --alphaout=$(TEMP)/nginx16.pbm \ | |
86 src/os/win32/nginx_icon16.xpm > $(TEMP)/nginx16.ppm | |
87 | |
88 ppmtowinicon -output src/os/win32/nginx.ico -andpgms \ | |
89 $(TEMP)/nginx32.ppm $(TEMP)/nginx32.pbm \ | |
90 $(TEMP)/nginx16.ppm $(TEMP)/nginx16.pbm | |
91 | |
92 # tray icon | |
93 | |
94 src/os/win32/nginx_tray.ico: src/os/win32/nginx_tray.xpm | |
95 | |
96 test -d $(TEMP) || mkdir $(TEMP) | |
97 | |
98 xpmtoppm --alphaout=$(TEMP)/nginx_tray.pbm \ | |
99 src/os/win32/nginx_tray.xpm > $(TEMP)/nginx_tray.ppm | |
100 | |
101 ppmtowinicon -output src/os/win32/nginx_tray.ico -andpgms \ | |
102 $(TEMP)/nginx_tray.ppm $(TEMP)/nginx_tray.pbm |