configure: Simplify the generation of the install and clean rules.

This commit is contained in:
Alexandre Julliard 2013-10-05 19:31:33 +02:00
parent 8c959d6c56
commit 204105ade4
4 changed files with 142 additions and 118 deletions

View File

@ -25,7 +25,7 @@ IDL_GEN_C_SRCS = $(IDL_C_SRCS:.idl=_c.c) $(IDL_I_SRCS:.idl=_i.c) \
IDL_GEN_HEADERS = $(IDL_H_SRCS:.idl=.h) $(IDL_C_SRCS:.idl=.h) $(IDL_I_SRCS:.idl=.h) \ IDL_GEN_HEADERS = $(IDL_H_SRCS:.idl=.h) $(IDL_C_SRCS:.idl=.h) $(IDL_I_SRCS:.idl=.h) \
$(IDL_P_SRCS:.idl=.h) $(IDL_S_SRCS:.idl=.h) $(IDL_P_SRCS:.idl=.h) $(IDL_S_SRCS:.idl=.h)
CLEAN_FILES = *.o *.a *.so *.mo *.ln *.res *.fake *.tab.[ch] *.yy.c CLEAN_FILES = *.o *.a *.so *.mo *.ln *.res *.fake *.ok *.tab.[ch] *.yy.c
CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) \ CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) \
$(IDL_TLB_SRCS:.idl=.tlb) $(IDL_P_SRCS:.idl=_p.c dlldata.c) \ $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_P_SRCS:.idl=_p.c dlldata.c) \
$(PO_SRCS:.rc=.res rsrc.pot) $(MC_SRCS:.mc=.res msg.pot) $(XTEMPLATE_SRCS:.x=.h) $(PO_SRCS:.rc=.res rsrc.pot) $(MC_SRCS:.mc=.res msg.pot) $(XTEMPLATE_SRCS:.x=.h)

120
aclocal.m4 vendored
View File

@ -213,7 +213,7 @@ wine_fn_has_flag ()
expr ",$[2]," : ".*,$[1],.*" >/dev/null expr ",$[2]," : ".*,$[1],.*" >/dev/null
} }
wine_fn_all_dir_rules () wine_fn_depend_rules ()
{ {
ac_dir=$[1] ac_dir=$[1]
ac_alldeps=$[2] ac_alldeps=$[2]
@ -265,20 +265,23 @@ $ac_dir/rsrc.pot: tools/wrc include"
fi fi
} }
wine_fn_config_all_make_rules () wine_fn_all_rules ()
{ {
ac_dir=$[1] ac_dir=$[1]
ac_enable=$[2] ac_rules=$[2]
ac_flags=$[3]
ac_rules=$[4]
AS_VAR_IF([$ac_enable],[no],[return 0])
wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules} wine_fn_depend_rules $ac_dir ${ac_rules:-Make.rules}
wine_fn_append_rule \ wine_fn_append_rule \
"all: $ac_dir "all: $ac_dir
.PHONY: $ac_dir .PHONY: $ac_dir
$ac_dir: $ac_dir/Makefile dummy $ac_dir: $ac_dir/Makefile dummy
@cd $ac_dir && \$(MAKE)" @cd $ac_dir && \$(MAKE)"
}
wine_fn_install_rules ()
{
ac_dir=$[1]
ac_flags=$[2]
wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
@ -332,13 +335,26 @@ $ac_dir/__clean__: $ac_dir/Makefile
fi fi
} }
wine_fn_disabled_rules ()
{
ac_dir=$[1]
shift
ac_clean=$[@]
wine_fn_append_rule \
"clean::
\$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_dir/Makefile"
}
wine_fn_config_makefile () wine_fn_config_makefile ()
{ {
ac_dir=$[1] ac_dir=$[1]
ac_enable=$[2] ac_enable=$[2]
ac_flags=$[3] ac_flags=$[3]
wine_fn_config_all_make_rules $ac_dir $ac_enable $ac_flags AS_VAR_IF([$ac_enable],[no],[wine_fn_disabled_rules $ac_dir; return])
wine_fn_all_rules $ac_dir
wine_fn_install_rules $ac_dir $ac_flags
wine_fn_clean_rules $ac_dir $ac_flags wine_fn_clean_rules $ac_dir $ac_flags
} }
@ -347,24 +363,19 @@ wine_fn_config_lib ()
ac_name=$[1] ac_name=$[1]
ac_flags=$[2] ac_flags=$[2]
ac_dir=dlls/$ac_name ac_dir=dlls/$ac_name
wine_fn_config_all_make_rules $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
wine_fn_all_rules $ac_dir dlls/Makeimplib.rules
wine_fn_clean_rules $ac_dir $ac_flags wine_fn_clean_rules $ac_dir $ac_flags
if wine_fn_has_flag install-dev $ac_flags wine_fn_append_rule \
then :
else
wine_fn_append_rule \
".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__ ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
\$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
$ac_dir/__uninstall__:: $ac_dir/__uninstall__::
\$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
install install-dev:: $ac_dir/__install__ install install-dev:: $ac_dir/__install__
__uninstall__: $ac_dir/__uninstall__" __uninstall__: $ac_dir/__uninstall__
fi __builddeps__: $ac_dir
wine_fn_append_rule \
"__builddeps__: $ac_dir
$ac_dir: tools/widl tools/winebuild tools/winegcc include" $ac_dir: tools/widl tools/winebuild tools/winegcc include"
} }
@ -386,49 +397,48 @@ wine_fn_config_dll ()
*) ac_dll=$ac_dll.dll ;; *) ac_dll=$ac_dll.dll ;;
esac esac
wine_fn_config_all_make_rules $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
ac_clean= ac_clean=
wine_fn_has_flag implib $ac_flags && ac_clean="$ac_clean $ac_file.$IMPLIBEXT" wine_fn_has_flag implib $ac_flags && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
wine_fn_has_flag mc $ac_flags && ac_clean="$ac_clean $ac_dir/msg.pot" wine_fn_has_flag mc $ac_flags && ac_clean="$ac_clean $ac_dir/msg.pot"
wine_fn_has_flag po $ac_flags && ac_clean="$ac_clean $ac_dir/rsrc.pot" wine_fn_has_flag po $ac_flags && ac_clean="$ac_clean $ac_dir/rsrc.pot"
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean
AS_VAR_IF([$ac_enable],[no], AS_VAR_IF([$ac_enable],[no],
dnl enable_win16 is special in that it disables import libs too dnl enable_win16 is special in that it disables import libs too
[test "$ac_enable" != enable_win16 || return 0 [if wine_fn_has_flag implib $ac_flags && test "$ac_enable" != enable_win16
wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules], then
wine_fn_depend_rules $ac_dir dlls/Makedll.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean
else
wine_fn_disabled_rules $ac_dir $ac_clean
return
fi],
[wine_fn_append_rule \ [wine_fn_all_rules $ac_dir dlls/Makedll.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean
wine_fn_append_rule \
"$ac_dir: __builddeps__ "$ac_dir: __builddeps__
manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
@cd $ac_dir && \$(MAKE) \$[@]" @cd $ac_dir && \$(MAKE) \$[@]
.PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
if wine_fn_has_flag install-lib $ac_flags
then :
else
wine_fn_append_rule \
".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
install install-lib:: $ac_dir/__install-lib__ install install-lib:: $ac_dir/__install-lib__
__uninstall__: $ac_dir/__uninstall__" __uninstall__: $ac_dir/__uninstall__"
if test -n "$DLLEXT" if test -n "$DLLEXT"
then then
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir) "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
\$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
\$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
$ac_dir/__uninstall__:: $ac_dir/__uninstall__::
\$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll" \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
else else
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
\$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
$ac_dir/__uninstall__:: $ac_dir/__uninstall__::
\$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll" \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
fi fi
fi
wine_fn_pot_rules $ac_dir $ac_flags]) wine_fn_pot_rules $ac_dir $ac_flags])
if wine_fn_has_flag staticimplib $ac_flags if wine_fn_has_flag staticimplib $ac_flags
then then
@ -519,17 +529,17 @@ wine_fn_config_program ()
*) ac_program=$ac_program.exe ;; *) ac_program=$ac_program.exe ;;
esac esac
wine_fn_config_all_make_rules $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
ac_clean= ac_clean=
wine_fn_has_flag mc $ac_flags && ac_clean="$ac_clean $ac_dir/msg.pot" wine_fn_has_flag mc $ac_flags && ac_clean="$ac_clean $ac_dir/msg.pot"
wine_fn_has_flag po $ac_flags && ac_clean="$ac_clean $ac_dir/rsrc.pot" wine_fn_has_flag po $ac_flags && ac_clean="$ac_clean $ac_dir/rsrc.pot"
wine_fn_has_flag manpage $ac_flags && ac_clean="$ac_clean $ac_dir/$ac_name.man" wine_fn_has_flag manpage $ac_flags && ac_clean="$ac_clean $ac_dir/$ac_name.man"
test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program" test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
AS_VAR_IF([$ac_enable],[no],[wine_fn_disabled_rules $ac_dir $ac_clean; return])
wine_fn_all_rules $ac_dir programs/Makeprog.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean
wine_fn_append_rule "$ac_dir: __builddeps__"
AS_VAR_IF([$ac_enable],[no],,[wine_fn_append_rule "$ac_dir: __builddeps__"
wine_fn_pot_rules $ac_dir $ac_flags wine_fn_pot_rules $ac_dir $ac_flags
wine_fn_has_flag install $ac_flags || return wine_fn_has_flag install $ac_flags || return
@ -570,7 +580,7 @@ $ac_dir/__uninstall__::
\$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext) \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
$ac_dir/__uninstall__:: $ac_dir/__uninstall__::
\$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)" \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
fi]) fi
} }
wine_fn_config_test () wine_fn_config_test ()
@ -582,17 +592,16 @@ wine_fn_config_test ()
ac_clean= ac_clean=
test "x$CROSSTEST_DISABLE" = x && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe test "x$CROSSTEST_DISABLE" = x && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
test -n "$DLLEXT" || ac_clean=$ac_dir/${ac_name}.exe test -n "$DLLEXT" || ac_clean=$ac_dir/${ac_name}.exe
ac_clean="$ac_clean $ac_dir/*.ok $ac_dir/testlist.c" ac_clean="$ac_clean $ac_dir/testlist.c"
AS_VAR_IF([enable_tests],[no],[wine_fn_disabled_rules $ac_dir $ac_clean; return])
wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
wine_fn_all_dir_rules $ac_dir Maketest.rules wine_fn_all_rules $ac_dir Maketest.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean
AS_VAR_IF([enable_tests],[no],,[wine_fn_append_rule \ wine_fn_append_rule \
"all: $ac_dir "$ac_dir: programs/winetest/Makefile __builddeps__
.PHONY: $ac_dir
$ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
@cd $ac_dir && \$(MAKE)
programs/winetest: $ac_dir programs/winetest: $ac_dir
check test: $ac_dir/__test__ check test: $ac_dir/__test__
.PHONY: $ac_dir/__test__ .PHONY: $ac_dir/__test__
@ -608,16 +617,17 @@ testclean::
.PHONY: $ac_dir/__crosstest__ .PHONY: $ac_dir/__crosstest__
$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
@cd $ac_dir && \$(MAKE) crosstest" @cd $ac_dir && \$(MAKE) crosstest"
fi]) fi
} }
wine_fn_config_tool () wine_fn_config_tool ()
{ {
ac_dir=$[1] ac_dir=$[1]
ac_flags=$[2] ac_flags=$[2]
AS_VAR_IF([enable_tools],[no],[return 0]) AS_VAR_IF([enable_tools],[no],[return])
wine_fn_config_all_make_rules $ac_dir enable_tools $ac_flags wine_fn_all_rules $ac_dir
wine_fn_install_rules $ac_dir $ac_flags
wine_fn_clean_rules $ac_dir $ac_flags wine_fn_clean_rules $ac_dir $ac_flags
wine_fn_append_rule "__tooldeps__: $ac_dir" wine_fn_append_rule "__tooldeps__: $ac_dir"

130
configure vendored
View File

@ -16127,7 +16127,7 @@ wine_fn_has_flag ()
expr ",$2," : ".*,$1,.*" >/dev/null expr ",$2," : ".*,$1,.*" >/dev/null
} }
wine_fn_all_dir_rules () wine_fn_depend_rules ()
{ {
ac_dir=$1 ac_dir=$1
ac_alldeps=$2 ac_alldeps=$2
@ -16178,22 +16178,23 @@ $ac_dir/rsrc.pot: tools/wrc include"
fi fi
} }
wine_fn_config_all_make_rules () wine_fn_all_rules ()
{ {
ac_dir=$1 ac_dir=$1
ac_enable=$2 ac_rules=$2
ac_flags=$3
ac_rules=$4
if eval test \"x\$"$ac_enable"\" = x"no"; then :
return 0
fi
wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules} wine_fn_depend_rules $ac_dir ${ac_rules:-Make.rules}
wine_fn_append_rule \ wine_fn_append_rule \
"all: $ac_dir "all: $ac_dir
.PHONY: $ac_dir .PHONY: $ac_dir
$ac_dir: $ac_dir/Makefile dummy $ac_dir: $ac_dir/Makefile dummy
@cd $ac_dir && \$(MAKE)" @cd $ac_dir && \$(MAKE)"
}
wine_fn_install_rules ()
{
ac_dir=$1
ac_flags=$2
wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
@ -16247,13 +16248,28 @@ $ac_dir/__clean__: $ac_dir/Makefile
fi fi
} }
wine_fn_disabled_rules ()
{
ac_dir=$1
shift
ac_clean=$@
wine_fn_append_rule \
"clean::
\$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_dir/Makefile"
}
wine_fn_config_makefile () wine_fn_config_makefile ()
{ {
ac_dir=$1 ac_dir=$1
ac_enable=$2 ac_enable=$2
ac_flags=$3 ac_flags=$3
wine_fn_config_all_make_rules $ac_dir $ac_enable $ac_flags if eval test \"x\$"$ac_enable"\" = x"no"; then :
wine_fn_disabled_rules $ac_dir; return
fi
wine_fn_all_rules $ac_dir
wine_fn_install_rules $ac_dir $ac_flags
wine_fn_clean_rules $ac_dir $ac_flags wine_fn_clean_rules $ac_dir $ac_flags
} }
@ -16262,24 +16278,19 @@ wine_fn_config_lib ()
ac_name=$1 ac_name=$1
ac_flags=$2 ac_flags=$2
ac_dir=dlls/$ac_name ac_dir=dlls/$ac_name
wine_fn_config_all_make_rules $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
wine_fn_all_rules $ac_dir dlls/Makeimplib.rules
wine_fn_clean_rules $ac_dir $ac_flags wine_fn_clean_rules $ac_dir $ac_flags
if wine_fn_has_flag install-dev $ac_flags wine_fn_append_rule \
then :
else
wine_fn_append_rule \
".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__ ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
\$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
$ac_dir/__uninstall__:: $ac_dir/__uninstall__::
\$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
install install-dev:: $ac_dir/__install__ install install-dev:: $ac_dir/__install__
__uninstall__: $ac_dir/__uninstall__" __uninstall__: $ac_dir/__uninstall__
fi __builddeps__: $ac_dir
wine_fn_append_rule \
"__builddeps__: $ac_dir
$ac_dir: tools/widl tools/winebuild tools/winegcc include" $ac_dir: tools/widl tools/winebuild tools/winegcc include"
} }
@ -16301,48 +16312,47 @@ wine_fn_config_dll ()
*) ac_dll=$ac_dll.dll ;; *) ac_dll=$ac_dll.dll ;;
esac esac
wine_fn_config_all_make_rules $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
ac_clean= ac_clean=
wine_fn_has_flag implib $ac_flags && ac_clean="$ac_clean $ac_file.$IMPLIBEXT" wine_fn_has_flag implib $ac_flags && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
wine_fn_has_flag mc $ac_flags && ac_clean="$ac_clean $ac_dir/msg.pot" wine_fn_has_flag mc $ac_flags && ac_clean="$ac_clean $ac_dir/msg.pot"
wine_fn_has_flag po $ac_flags && ac_clean="$ac_clean $ac_dir/rsrc.pot" wine_fn_has_flag po $ac_flags && ac_clean="$ac_clean $ac_dir/rsrc.pot"
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean
if eval test \"x\$"$ac_enable"\" = x"no"; then : if eval test \"x\$"$ac_enable"\" = x"no"; then :
test "$ac_enable" != enable_win16 || return 0 if wine_fn_has_flag implib $ac_flags && test "$ac_enable" != enable_win16
wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules then
wine_fn_depend_rules $ac_dir dlls/Makedll.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean
else
wine_fn_disabled_rules $ac_dir $ac_clean
return
fi
else else
wine_fn_append_rule \ wine_fn_all_rules $ac_dir dlls/Makedll.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean
wine_fn_append_rule \
"$ac_dir: __builddeps__ "$ac_dir: __builddeps__
manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
@cd $ac_dir && \$(MAKE) \$@" @cd $ac_dir && \$(MAKE) \$@
.PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
if wine_fn_has_flag install-lib $ac_flags
then :
else
wine_fn_append_rule \
".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
install install-lib:: $ac_dir/__install-lib__ install install-lib:: $ac_dir/__install-lib__
__uninstall__: $ac_dir/__uninstall__" __uninstall__: $ac_dir/__uninstall__"
if test -n "$DLLEXT" if test -n "$DLLEXT"
then then
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir) "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
\$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
\$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
$ac_dir/__uninstall__:: $ac_dir/__uninstall__::
\$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll" \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
else else
wine_fn_append_rule \ wine_fn_append_rule \
"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
\$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
$ac_dir/__uninstall__:: $ac_dir/__uninstall__::
\$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll" \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
fi fi
fi
wine_fn_pot_rules $ac_dir $ac_flags wine_fn_pot_rules $ac_dir $ac_flags
fi fi
if wine_fn_has_flag staticimplib $ac_flags if wine_fn_has_flag staticimplib $ac_flags
@ -16434,20 +16444,19 @@ wine_fn_config_program ()
*) ac_program=$ac_program.exe ;; *) ac_program=$ac_program.exe ;;
esac esac
wine_fn_config_all_make_rules $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
ac_clean= ac_clean=
wine_fn_has_flag mc $ac_flags && ac_clean="$ac_clean $ac_dir/msg.pot" wine_fn_has_flag mc $ac_flags && ac_clean="$ac_clean $ac_dir/msg.pot"
wine_fn_has_flag po $ac_flags && ac_clean="$ac_clean $ac_dir/rsrc.pot" wine_fn_has_flag po $ac_flags && ac_clean="$ac_clean $ac_dir/rsrc.pot"
wine_fn_has_flag manpage $ac_flags && ac_clean="$ac_clean $ac_dir/$ac_name.man" wine_fn_has_flag manpage $ac_flags && ac_clean="$ac_clean $ac_dir/$ac_name.man"
test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program" test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean
if eval test \"x\$"$ac_enable"\" = x"no"; then : if eval test \"x\$"$ac_enable"\" = x"no"; then :
wine_fn_disabled_rules $ac_dir $ac_clean; return
fi
else wine_fn_all_rules $ac_dir programs/Makeprog.rules
wine_fn_append_rule "$ac_dir: __builddeps__" wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean
wine_fn_append_rule "$ac_dir: __builddeps__"
wine_fn_pot_rules $ac_dir $ac_flags wine_fn_pot_rules $ac_dir $ac_flags
wine_fn_has_flag install $ac_flags || return wine_fn_has_flag install $ac_flags || return
@ -16489,7 +16498,6 @@ $ac_dir/__uninstall__::
$ac_dir/__uninstall__:: $ac_dir/__uninstall__::
\$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)" \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
fi fi
fi
} }
wine_fn_config_test () wine_fn_config_test ()
@ -16501,20 +16509,18 @@ wine_fn_config_test ()
ac_clean= ac_clean=
test "x$CROSSTEST_DISABLE" = x && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe test "x$CROSSTEST_DISABLE" = x && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
test -n "$DLLEXT" || ac_clean=$ac_dir/${ac_name}.exe test -n "$DLLEXT" || ac_clean=$ac_dir/${ac_name}.exe
ac_clean="$ac_clean $ac_dir/*.ok $ac_dir/testlist.c" ac_clean="$ac_clean $ac_dir/testlist.c"
wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
wine_fn_all_dir_rules $ac_dir Maketest.rules
wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean
if test "x$enable_tests" = xno; then : if test "x$enable_tests" = xno; then :
wine_fn_disabled_rules $ac_dir $ac_clean; return
fi
else wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
wine_fn_append_rule \ wine_fn_all_rules $ac_dir Maketest.rules
"all: $ac_dir wine_fn_clean_rules $ac_dir "$ac_flags" $ac_clean
.PHONY: $ac_dir
$ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy wine_fn_append_rule \
@cd $ac_dir && \$(MAKE) "$ac_dir: programs/winetest/Makefile __builddeps__
programs/winetest: $ac_dir programs/winetest: $ac_dir
check test: $ac_dir/__test__ check test: $ac_dir/__test__
.PHONY: $ac_dir/__test__ .PHONY: $ac_dir/__test__
@ -16531,7 +16537,6 @@ testclean::
$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
@cd $ac_dir && \$(MAKE) crosstest" @cd $ac_dir && \$(MAKE) crosstest"
fi fi
fi
} }
wine_fn_config_tool () wine_fn_config_tool ()
@ -16539,10 +16544,11 @@ wine_fn_config_tool ()
ac_dir=$1 ac_dir=$1
ac_flags=$2 ac_flags=$2
if test "x$enable_tools" = xno; then : if test "x$enable_tools" = xno; then :
return 0 return
fi fi
wine_fn_config_all_make_rules $ac_dir enable_tools $ac_flags wine_fn_all_rules $ac_dir
wine_fn_install_rules $ac_dir $ac_flags
wine_fn_clean_rules $ac_dir $ac_flags wine_fn_clean_rules $ac_dir $ac_flags
wine_fn_append_rule "__tooldeps__: $ac_dir" wine_fn_append_rule "__tooldeps__: $ac_dir"

View File

@ -351,6 +351,14 @@ sub parse_makefile($)
${$make{"=flags"}}{"installbin"} = 1 if $bin_install{$1}; ${$make{"=flags"}}{"installbin"} = 1 if $bin_install{$1};
} }
if (defined $make{"=flags"} && defined $make{"=rules"} &&
($make{"=rules"} eq $makerules{"MAKE_DLL_RULES"} ||
$make{"=rules"} eq $makerules{"MAKE_PROG_RULES"}))
{
die "Custom install-lib rule not allowed in $file" if defined ${$make{"=flags"}}{"install-lib"};
die "Custom install-dev rule not allowed in $file" if defined ${$make{"=flags"}}{"install-dev"};
}
return %make; return %make;
} }