Welcome to mirror list, hosted at ThFree Co, Russian Federation.

init « auto - github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/auto/init
blob: bc4d8bbec99234c97f035d5bac69fc3d9bfebab6 (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

# Copyright (C) Igor Sysoev


MAKEFILE=$OBJS/Makefile

NGX_AUTO_CONFIG_H=$OBJS/ngx_auto_config.h
NGX_MODULES_C=$OBJS/ngx_modules.c

NGX_AUTOTEST=$OBJS/autotest
NGX_ERR=$OBJS/autoconf.err

CC_WARN=$CC

PCH=NO
USEPCH=

OBJEXT=
BINEXT=
DIRSEP='\/'
MAKE_SL=NO


# checking echo's "-n" option and "\c" capabilties

if echo "test\c" | grep c >/dev/null; then
    if echo -n test | grep n >/dev/null; then
        ngx_n=
        ngx_c=
    else
        ngx_n=-n
        ngx_c=
    fi

else
    ngx_n=
    ngx_c='\c'
fi



if test ! -f Makefile; then

    cat << END > Makefile

build:
	\$(MAKE) -f $OBJS/Makefile

install:
	\$(MAKE) -f $OBJS/Makefile install

clean:
	rm -rf Makefile $OBJS

upgrade:
	$SBIN_PATH -t
	kill -USR2 \`cat $PID_PATH\`
	sleep 1
	test -f $PID_PATH.newbin
	kill -WINCH \`cat $PID_PATH\`

END

fi