makefiles: Bypass the normal substitution mechanism for the makefile dependencies.
This avoids performance problems with large substitutions.
This commit is contained in:
parent
abfb11e1cc
commit
39b4ba214b
17
Makefile.in
17
Makefile.in
|
@ -18,14 +18,10 @@
|
||||||
# sgmlpages: compile sgml source for the Wine API Guide
|
# sgmlpages: compile sgml source for the Wine API Guide
|
||||||
# xmlpages: compile xml source for the Wine API Guide
|
# xmlpages: compile xml source for the Wine API Guide
|
||||||
|
|
||||||
# Directories
|
|
||||||
|
|
||||||
TOPSRCDIR = @top_srcdir@
|
TOPSRCDIR = @top_srcdir@
|
||||||
TOPOBJDIR = .
|
TOPOBJDIR = .
|
||||||
SRCDIR = @srcdir@
|
SRCDIR = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
LIBEXT = @LIBEXT@
|
|
||||||
MODULE = none
|
|
||||||
|
|
||||||
# Sub-directories that don't have a makefile
|
# Sub-directories that don't have a makefile
|
||||||
EXTRASUBDIRS = dlls libs
|
EXTRASUBDIRS = dlls libs
|
||||||
|
@ -61,7 +57,7 @@ clean:: __clean__
|
||||||
$(RM) tools/makedep$(EXEEXT)
|
$(RM) tools/makedep$(EXEEXT)
|
||||||
|
|
||||||
distclean:: clean
|
distclean:: clean
|
||||||
$(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h Makefile
|
$(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h Makefile Make.tmp
|
||||||
$(RM) -r autom4te.cache
|
$(RM) -r autom4te.cache
|
||||||
|
|
||||||
# Dependencies between directories
|
# Dependencies between directories
|
||||||
|
@ -91,14 +87,3 @@ TAGS etags:
|
||||||
tags ctags:
|
tags ctags:
|
||||||
$(RM) tags
|
$(RM) tags
|
||||||
(test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs ctags -a
|
(test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs ctags -a
|
||||||
|
|
||||||
# Makefile rules
|
|
||||||
|
|
||||||
.INIT: Makefile
|
|
||||||
.BEGIN: Makefile
|
|
||||||
.MAKEFILEDEPS:
|
|
||||||
|
|
||||||
@ALL_MAKEFILE_DEPENDS@
|
|
||||||
|
|
||||||
uninstall::
|
|
||||||
-rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir)
|
|
||||||
|
|
|
@ -140,9 +140,14 @@ dnl
|
||||||
dnl Usage: AC_REQUIRE([WINE_CONFIG_HELPERS])
|
dnl Usage: AC_REQUIRE([WINE_CONFIG_HELPERS])
|
||||||
dnl
|
dnl
|
||||||
AC_DEFUN([WINE_CONFIG_HELPERS],
|
AC_DEFUN([WINE_CONFIG_HELPERS],
|
||||||
[AC_SUBST(ALL_MAKEFILE_DEPENDS,["# Makefile dependencies
|
[ALL_MAKEFILE_DEPENDS="
|
||||||
|
# Rules automatically generated by configure
|
||||||
|
|
||||||
|
.INIT: Makefile
|
||||||
|
.BEGIN: Makefile
|
||||||
|
.MAKEFILEDEPS:
|
||||||
Makefile: Makefile.in Make.rules config.status
|
Makefile: Makefile.in Make.rules config.status
|
||||||
@./config.status Makefile"])
|
@./config.status Make.tmp Makefile"
|
||||||
|
|
||||||
AC_SUBST(ALL_WINETEST_DEPENDS,["# Test binaries"])
|
AC_SUBST(ALL_WINETEST_DEPENDS,["# Test binaries"])
|
||||||
AC_SUBST(ALL_TEST_BINARIES,"")
|
AC_SUBST(ALL_TEST_BINARIES,"")
|
||||||
|
|
|
@ -599,7 +599,6 @@ LIBOBJS
|
||||||
ALL_PROGRAM_BIN_INSTALL_DIRS
|
ALL_PROGRAM_BIN_INSTALL_DIRS
|
||||||
ALL_TEST_BINARIES
|
ALL_TEST_BINARIES
|
||||||
ALL_WINETEST_DEPENDS
|
ALL_WINETEST_DEPENDS
|
||||||
ALL_MAKEFILE_DEPENDS
|
|
||||||
LDAPLIBS
|
LDAPLIBS
|
||||||
LIBPOLL
|
LIBPOLL
|
||||||
LIBDL
|
LIBDL
|
||||||
|
@ -13842,10 +13841,14 @@ esac
|
||||||
ac_config_commands="$ac_config_commands include/stamp-h"
|
ac_config_commands="$ac_config_commands include/stamp-h"
|
||||||
|
|
||||||
|
|
||||||
ALL_MAKEFILE_DEPENDS="# Makefile dependencies
|
ALL_MAKEFILE_DEPENDS="
|
||||||
Makefile: Makefile.in Make.rules config.status
|
# Rules automatically generated by configure
|
||||||
@./config.status Makefile"
|
|
||||||
|
|
||||||
|
.INIT: Makefile
|
||||||
|
.BEGIN: Makefile
|
||||||
|
.MAKEFILEDEPS:
|
||||||
|
Makefile: Makefile.in Make.rules config.status
|
||||||
|
@./config.status Make.tmp Makefile"
|
||||||
|
|
||||||
ALL_WINETEST_DEPENDS="# Test binaries"
|
ALL_WINETEST_DEPENDS="# Test binaries"
|
||||||
|
|
||||||
|
@ -14695,11 +14698,17 @@ wine_fn_config_tool tools/winegcc
|
||||||
wine_fn_config_tool tools/wmc
|
wine_fn_config_tool tools/wmc
|
||||||
wine_fn_config_tool tools/wrc
|
wine_fn_config_tool tools/wrc
|
||||||
|
|
||||||
ac_config_files="$ac_config_files Makefile"
|
ac_config_commands="$ac_config_commands Makefile"
|
||||||
|
|
||||||
|
|
||||||
|
ac_config_files="$ac_config_files Make.tmp:Makefile.in"
|
||||||
|
|
||||||
|
|
||||||
test -n "$DLLEXT" || ALL_PROGRAM_BIN_INSTALL_DIRS=""
|
test -n "$DLLEXT" || ALL_PROGRAM_BIN_INSTALL_DIRS=""
|
||||||
|
|
||||||
|
wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
|
||||||
|
-rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
|
||||||
|
|
||||||
cat >confcache <<\_ACEOF
|
cat >confcache <<\_ACEOF
|
||||||
# This file is a shell script that caches the results of configure
|
# This file is a shell script that caches the results of configure
|
||||||
# tests run on this system so they can be shared between configure
|
# tests run on this system so they can be shared between configure
|
||||||
|
@ -15384,6 +15393,17 @@ _ASBOX
|
||||||
|
|
||||||
_ACEOF
|
_ACEOF
|
||||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||||
|
#
|
||||||
|
# INIT-COMMANDS
|
||||||
|
#
|
||||||
|
wine_fn_output_makefile ()
|
||||||
|
{
|
||||||
|
cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
|
||||||
|
$ALL_MAKEFILE_DEPENDS
|
||||||
|
_WINE_EOF
|
||||||
|
as_fn_error "could not create Makefile" "$LINENO" 5
|
||||||
|
}
|
||||||
|
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
||||||
|
@ -15411,7 +15431,8 @@ do
|
||||||
"dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
|
"dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
|
||||||
"dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
|
"dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
|
||||||
"programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
|
"programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
|
||||||
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
"Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
|
||||||
|
"Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Makefile.in" ;;
|
||||||
|
|
||||||
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
||||||
esac
|
esac
|
||||||
|
@ -16040,6 +16061,7 @@ $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/res
|
||||||
$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
|
$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
|
||||||
"include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
|
"include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
|
||||||
$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
|
$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
|
||||||
|
"Makefile":C) wine_fn_output_makefile Makefile ;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
done # for ac_tag
|
done # for ac_tag
|
||||||
|
|
16
configure.ac
16
configure.ac
|
@ -2702,11 +2702,25 @@ WINE_CONFIG_TOOL(tools/wmc)
|
||||||
WINE_CONFIG_TOOL(tools/wrc)
|
WINE_CONFIG_TOOL(tools/wrc)
|
||||||
dnl End of auto-generated output commands
|
dnl End of auto-generated output commands
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_COMMANDS([Makefile], [wine_fn_output_makefile Makefile],
|
||||||
|
[wine_fn_output_makefile ()
|
||||||
|
{
|
||||||
|
cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$[]1 && rm -f Make.tmp && return
|
||||||
|
$ALL_MAKEFILE_DEPENDS
|
||||||
|
_WINE_EOF
|
||||||
|
AS_ERROR([could not create Makefile])
|
||||||
|
}])
|
||||||
|
|
||||||
|
AC_CONFIG_FILES([Make.tmp:Makefile.in])
|
||||||
|
|
||||||
dnl Don't install in bin dir for Windows build
|
dnl Don't install in bin dir for Windows build
|
||||||
test -n "$DLLEXT" || ALL_PROGRAM_BIN_INSTALL_DIRS=""
|
test -n "$DLLEXT" || ALL_PROGRAM_BIN_INSTALL_DIRS=""
|
||||||
|
|
||||||
|
dnl Some final makefile rules
|
||||||
|
WINE_APPEND_RULE([ALL_MAKEFILE_DEPENDS],
|
||||||
|
[uninstall::
|
||||||
|
-rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)])
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
if test "$no_create" = "yes"
|
if test "$no_create" = "yes"
|
||||||
|
|
Loading…
Reference in New Issue