Klaus Demo nginx / 4275d0a
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
2 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
103103 -e "s|%%ERROR_LOG_PATH%%|${NGX_ERROR_LOG_PATH:-stderr}|" \\
104104 < $NGX_MAN > \$@
105105
106 install: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext} \
107 $NGX_INSTALL_PERL_MODULES
106 install: build $NGX_INSTALL_PERL_MODULES
108107 test -d '\$(DESTDIR)$NGX_PREFIX' || mkdir -p '\$(DESTDIR)$NGX_PREFIX'
109108
110109 test -d '\$(DESTDIR)`dirname "$NGX_SBIN_PATH"`' \
186185
187186 build:
188187 \$(MAKE) -f $NGX_MAKEFILE
189 \$(MAKE) -f $NGX_MAKEFILE modules
190 \$(MAKE) -f $NGX_MAKEFILE manpage
191188
192189 install:
193190 \$(MAKE) -f $NGX_MAKEFILE install
221221
222222
223223 cat << END >> $NGX_MAKEFILE
224
225 build: binary modules manpage
226
227 binary: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext}
224228
225229 $NGX_OBJS${ngx_dirsep}nginx${ngx_binext}: $ngx_deps$ngx_spacer
226230 \$(LINK) ${ngx_long_start}${ngx_binout}$NGX_OBJS${ngx_dirsep}nginx$ngx_long_cont$ngx_objs$ngx_libs$ngx_link$ngx_main_link