configure: Support specifying a .rules.in file as dependency.

This commit is contained in:
Alexandre Julliard 2010-09-25 12:19:31 +02:00
parent 52c9e85b19
commit 9dd743fddc
2 changed files with 20 additions and 8 deletions

14
aclocal.m4 vendored
View File

@ -166,11 +166,17 @@ wine_fn_all_dir_rules ()
{
ac_dir=$[1]
ac_alldeps=$[2]
ac_makedep="\$(MAKEDEP)"
ac_input=Make.vars.in:$ac_dir/Makefile.in
if test $ac_dir != tools
then
dnl makedep is in tools so tools makefile cannot depend on it
ac_alldeps="$[2] \$(MAKEDEP)"
ac_alldeps="$[2] $ac_makedep"
fi
case $[2] in
*.in) ac_input=$ac_input:$[2] ;;
*) ac_makedep="$[2] $ac_makedep" ;;
esac
wine_fn_append_file ALL_DIRS $ac_dir
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
@ -180,11 +186,11 @@ $ac_dir/__clean__: $ac_dir/Makefile
@cd $ac_dir && \$(MAKE) clean
\$(RM) $ac_dir/Makefile
$ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
@./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && cd $ac_dir && \$(MAKE) depend
@./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
depend: $ac_dir/__depend__
.PHONY: $ac_dir/__depend__
$ac_dir/__depend__: $[2] \$(MAKEDEP) dummy
@./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && cd $ac_dir && \$(MAKE) depend"
$ac_dir/__depend__: $ac_makedep dummy
@./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
}
wine_fn_config_makefile ()

14
configure vendored
View File

@ -14127,10 +14127,16 @@ wine_fn_all_dir_rules ()
{
ac_dir=$1
ac_alldeps=$2
ac_makedep="\$(MAKEDEP)"
ac_input=Make.vars.in:$ac_dir/Makefile.in
if test $ac_dir != tools
then
ac_alldeps="$2 \$(MAKEDEP)"
ac_alldeps="$2 $ac_makedep"
fi
case $2 in
*.in) ac_input=$ac_input:$2 ;;
*) ac_makedep="$2 $ac_makedep" ;;
esac
wine_fn_append_file ALL_DIRS $ac_dir
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
@ -14140,11 +14146,11 @@ $ac_dir/__clean__: $ac_dir/Makefile
@cd $ac_dir && \$(MAKE) clean
\$(RM) $ac_dir/Makefile
$ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
@./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && cd $ac_dir && \$(MAKE) depend
@./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
depend: $ac_dir/__depend__
.PHONY: $ac_dir/__depend__
$ac_dir/__depend__: $2 \$(MAKEDEP) dummy
@./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && cd $ac_dir && \$(MAKE) depend"
$ac_dir/__depend__: $ac_makedep dummy
@./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
}
wine_fn_config_makefile ()