Newer
Older

Alexandre Julliard
committed
[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])
}])

Alexandre Julliard
committed
AC_CONFIG_FILES([Make.tmp:Make.vars.in:Makefile.in])

Alexandre Julliard
committed
dnl Some final makefile rules

Alexandre Julliard
committed
if test "x$enable_maintainer_mode" = xyes
then
WINE_APPEND_RULE([ALL_MAKEFILE_DEPENDS],
[\$(srcdir)/configure: configure.ac aclocal.m4
cd \$(srcdir) && autoconf --warnings=all
\$(srcdir)/include/config.h.in: include/stamp-h.in
\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
cd \$(srcdir) && autoheader --warnings=all
@echo timestamp > \$[@]
ALL_POT_FILES =$ALL_POT_FILES
all: \$(ALL_PO_FILES)
\$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
msgmerge -q \$[@] \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$[@].new && mv \$[@].new \$[@]
\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
msgcat -o \$[@] \$(ALL_POT_FILES)])
fi

Alexandre Julliard
committed
if test -n "$with_wine64"
then
WINE_APPEND_RULE([ALL_MAKEFILE_DEPENDS],
[all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader

Alexandre Julliard
committed
fonts server:
\$(RM) \$[@] && \$(LN_S) $with_wine64/\$[@] \$[@]

Alexandre Julliard
committed
$with_wine64/loader/wine:
\$(RM) \$[@] && \$(LN_S) $ac_pwd/loader/wine \$[@]
$with_wine64/loader/wine-preloader:
\$(RM) \$[@] && \$(LN_S) $ac_pwd/loader/wine-preloader \$[@]

Alexandre Julliard
committed
clean::
\$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader])

Alexandre Julliard
committed
fi

Alexandre Julliard
committed
WINE_APPEND_RULE([ALL_MAKEFILE_DEPENDS],
[uninstall::
-rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)])
AC_OUTPUT

Alexandre Julliard
committed
if test "$no_create" = "yes"
then
exit 0
fi

Alexandre Julliard
committed
WINE_PRINT_MESSAGES
echo "

Alexandre Julliard
committed
$as_me: Finished. Do '${ac_make}' to compile Wine.
" >&AS_MESSAGE_FD
dnl Local Variables:
dnl comment-start: "dnl "
dnl comment-end: ""
dnl comment-start-skip: "\\bdnl\\b\\s *"
dnl compile-command: "autoreconf --warnings=all"