Configure: added "build" target.
The "build" target introduced to do all build-related tasks, and
it is now used in Makefile and in objs/Makefile as a dependency for
the "install" target.
In particular, this resolves problems as observed with dynamic modules
by people trying to do "make install" without calling "make" first.
Maxim Dounin
6 years ago
103 | 103 |
-e "s|%%ERROR_LOG_PATH%%|${NGX_ERROR_LOG_PATH:-stderr}|" \\
|
104 | 104 |
< $NGX_MAN > \$@
|
105 | 105 |
|
106 | |
install: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext} \
|
107 | |
$NGX_INSTALL_PERL_MODULES
|
|
106 |
install: build $NGX_INSTALL_PERL_MODULES
|
108 | 107 |
test -d '\$(DESTDIR)$NGX_PREFIX' || mkdir -p '\$(DESTDIR)$NGX_PREFIX'
|
109 | 108 |
|
110 | 109 |
test -d '\$(DESTDIR)`dirname "$NGX_SBIN_PATH"`' \
|
|
186 | 185 |
|
187 | 186 |
build:
|
188 | 187 |
\$(MAKE) -f $NGX_MAKEFILE
|
189 | |
\$(MAKE) -f $NGX_MAKEFILE modules
|
190 | |
\$(MAKE) -f $NGX_MAKEFILE manpage
|
191 | 188 |
|
192 | 189 |
install:
|
193 | 190 |
\$(MAKE) -f $NGX_MAKEFILE install
|
221 | 221 |
|
222 | 222 |
|
223 | 223 |
cat << END >> $NGX_MAKEFILE
|
|
224 |
|
|
225 |
build: binary modules manpage
|
|
226 |
|
|
227 |
binary: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext}
|
224 | 228 |
|
225 | 229 |
$NGX_OBJS${ngx_dirsep}nginx${ngx_binext}: $ngx_deps$ngx_spacer
|
226 | 230 |
\$(LINK) ${ngx_long_start}${ngx_binout}$NGX_OBJS${ngx_dirsep}nginx$ngx_long_cont$ngx_objs$ngx_libs$ngx_link$ngx_main_link
|