automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] race condition gnulib-tool's mostlyclean-local rule


From: Bruno Haible
Subject: Re: [bug-gnulib] race condition gnulib-tool's mostlyclean-local rule
Date: Fri, 4 Aug 2006 18:02:47 +0200
User-agent: KMail/1.9.1

Ralf Wildenhues wrote:
> the right fix would be to add dependency information
>   mostlyclean-local: mostlyclean-compile mostlyclean-generic

Depending on mostlyclean-compile is not needed, and this rule removes
only files in the current directory. I added this fix to gnulib-tool:


2006-08-04  Bruno Haible  <address@hidden>

        * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
        Make the mostlyclean-local rule depend on mostlyclean-generic.
        Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.

*** gnulib-tool 31 Jul 2006 11:37:23 -0000      1.131
--- gnulib-tool 4 Aug 2006 16:03:57 -0000
***************
*** 932,938 ****
      fi
    done
    echo
!   echo "mostlyclean-local:"
    echo "      @test -z \"\$(MOSTLYCLEANDIRS)\" || \\"
    echo "        for dir in \$(MOSTLYCLEANDIRS); do \\"
    echo "          if test -d \$\$dir; then \\"
--- 932,938 ----
      fi
    done
    echo
!   echo "mostlyclean-local: mostlyclean-generic"
    echo "      @test -z \"\$(MOSTLYCLEANDIRS)\" || \\"
    echo "        for dir in \$(MOSTLYCLEANDIRS); do \\"
    echo "          if test -d \$\$dir; then \\"
***************
*** 1012,1018 ****
    echo "clean-local:"
    echo "      rm -rf SunWS_cache"
    echo
!   echo "mostlyclean-local:"
    echo "      @test -z \"\$(MOSTLYCLEANDIRS)\" || \\"
    echo "        for dir in \$(MOSTLYCLEANDIRS); do \\"
    echo "          if test -d \$\$dir; then \\"
--- 1012,1018 ----
    echo "clean-local:"
    echo "      rm -rf SunWS_cache"
    echo
!   echo "mostlyclean-local: mostlyclean-generic"
    echo "      @test -z \"\$(MOSTLYCLEANDIRS)\" || \\"
    echo "        for dir in \$(MOSTLYCLEANDIRS); do \\"
    echo "          if test -d \$\$dir; then \\"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]