comparison auto/make @ 6408:cfc3cfa434ec

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 19 Feb 2016 18:13:54 +0300
parents 85dea406e18f
children 35487ea55cb6
comparison
equal deleted inserted replaced
6407:062c189fee20 6408:cfc3cfa434ec
220 ngx_main_link=${MAIN_LINK:+`echo $MAIN_LINK \ 220 ngx_main_link=${MAIN_LINK:+`echo $MAIN_LINK \
221 | sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"`} 221 | sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"`}
222 222
223 223
224 cat << END >> $NGX_MAKEFILE 224 cat << END >> $NGX_MAKEFILE
225
226 build: binary modules manpage
227
228 binary: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext}
225 229
226 $NGX_OBJS${ngx_dirsep}nginx${ngx_binext}: $ngx_deps$ngx_spacer 230 $NGX_OBJS${ngx_dirsep}nginx${ngx_binext}: $ngx_deps$ngx_spacer
227 \$(LINK) ${ngx_long_start}${ngx_binout}$NGX_OBJS${ngx_dirsep}nginx$ngx_long_cont$ngx_objs$ngx_libs$ngx_link$ngx_main_link 231 \$(LINK) ${ngx_long_start}${ngx_binout}$NGX_OBJS${ngx_dirsep}nginx$ngx_long_cont$ngx_objs$ngx_libs$ngx_link$ngx_main_link
228 $ngx_rcc 232 $ngx_rcc
229 ${ngx_long_end} 233 ${ngx_long_end}