Mercurial > hg > nginx
comparison misc/GNUmakefile @ 2725:d43d73277c5c
Win32 master/workers model
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 20 Apr 2009 06:08:47 +0000 |
parents | 72ca7922d30d |
children | 37580bd13ca5 |
comparison
equal
deleted
inserted
replaced
2724:9fd2f12fee0a | 2725:d43d73277c5c |
---|---|
1 | 1 |
2 VER= $(shell grep 'define NGINX_VERSION' src/core/nginx.h \ | 2 VER = $(shell grep 'define NGINX_VERSION' src/core/nginx.h \ |
3 | sed -e 's/^.*\"\(.*\)\"/\1/') | 3 | sed -e 's/^.*\"\(.*\)\"/\1/') |
4 NGINX= nginx-$(VER) | 4 NGINX = nginx-$(VER) |
5 TEMP= tmp | 5 TEMP = tmp |
6 | |
7 OBJS = objs.msvc8 | |
8 OPENSSL = openssl-0.9.8k | |
9 ZLIB = zlib-1.2.3 | |
10 PCRE = pcre-4.4 | |
6 | 11 |
7 | 12 |
8 release: | 13 release: |
9 rm -rf $(TEMP) | 14 rm -rf $(TEMP) |
10 | 15 |
62 rm -r $(TEMP)/$(NGINX)/misc | 67 rm -r $(TEMP)/$(NGINX)/misc |
63 | 68 |
64 tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX) | 69 tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX) |
65 | 70 |
66 | 71 |
67 icons: src/os/win32/nginx.ico src/os/win32/nginx_tray.ico | 72 zip: |
73 rm -rf $(TEMP) | |
74 rm -f $(NGINX).zip | |
75 | |
76 mkdir -p $(TEMP)/$(NGINX)/docs | |
77 mkdir -p $(TEMP)/$(NGINX)/logs | |
78 mkdir -p $(TEMP)/$(NGINX)/temp | |
79 | |
80 svn export -rHEAD conf $(TEMP)/$(NGINX)/conf/ | |
81 perl -pi -e 's/$$/\r/' $(TEMP)/$(NGINX)/conf/* | |
82 | |
83 svn export -rHEAD contrib $(TEMP)/$(NGINX)/contrib/ | |
84 svn export -rHEAD docs/html $(TEMP)/$(NGINX)/html/ | |
85 | |
86 $(MAKE) -f docs/GNUmakefile changes | |
87 | |
88 cp -p $(OBJS)/nginx.exe $(TEMP)/$(NGINX) | |
89 | |
90 cp -p docs/text/LICENSE $(TEMP)/$(NGINX)/docs/ | |
91 cp -p docs/text/README $(TEMP)/$(NGINX)/docs/ | |
92 mv $(TEMP)/$(NGINX)/CHANGES* $(TEMP)/$(NGINX)/docs/ | |
93 | |
94 cp -p $(OBJS)/lib/$(OPENSSL)/LICENSE \ | |
95 $(TEMP)/$(NGINX)/docs/OpenSSL.LICENSE | |
96 | |
97 cp -p $(OBJS)/lib/$(PCRE)/COPYING \ | |
98 $(TEMP)/$(NGINX)/docs/PCRE.COPYING | |
99 | |
100 perl -ne 'print if /^ \(C\) 1995-2004/ .. /^ jloup\@gzip.org/' \ | |
101 $(OBJS)/lib/$(ZLIB)/README \ | |
102 > $(TEMP)/$(NGINX)/docs/zlib.LICENSE | |
103 | |
104 touch -r $(OBJS)/lib/$(ZLIB)/README \ | |
105 $(TEMP)/$(NGINX)/docs/zlib.LICENSE | |
106 | |
107 cd $(TEMP) && zip -r ../$(NGINX).zip $(NGINX) | |
108 | |
109 | |
110 icons: src/os/win32/nginx.ico | |
68 | 111 |
69 # 32x32 and 16x16 icons | 112 # 32x32 and 16x16 icons |
70 | 113 |
71 src/os/win32/nginx.ico: src/os/win32/nginx_icon32.xpm \ | 114 src/os/win32/nginx.ico: src/os/win32/nginx_icon32.xpm \ |
72 src/os/win32/nginx_icon16.xpm | 115 src/os/win32/nginx_icon16.xpm |
80 src/os/win32/nginx_icon16.xpm > $(TEMP)/nginx16.ppm | 123 src/os/win32/nginx_icon16.xpm > $(TEMP)/nginx16.ppm |
81 | 124 |
82 ppmtowinicon -output src/os/win32/nginx.ico -andpgms \ | 125 ppmtowinicon -output src/os/win32/nginx.ico -andpgms \ |
83 $(TEMP)/nginx32.ppm $(TEMP)/nginx32.pbm \ | 126 $(TEMP)/nginx32.ppm $(TEMP)/nginx32.pbm \ |
84 $(TEMP)/nginx16.ppm $(TEMP)/nginx16.pbm | 127 $(TEMP)/nginx16.ppm $(TEMP)/nginx16.pbm |
85 | |
86 # tray icon | |
87 | |
88 src/os/win32/nginx_tray.ico: src/os/win32/nginx_tray.xpm | |
89 | |
90 test -d $(TEMP) || mkdir $(TEMP) | |
91 | |
92 xpmtoppm --alphaout=$(TEMP)/nginx_tray.pbm \ | |
93 src/os/win32/nginx_tray.xpm > $(TEMP)/nginx_tray.ppm | |
94 | |
95 ppmtowinicon -output src/os/win32/nginx_tray.ico -andpgms \ | |
96 $(TEMP)/nginx_tray.ppm $(TEMP)/nginx_tray.pbm |