Bug #2589: mkmf.rb bug on "make distclean" if build fails
http://redmine.ruby-lang.org/issues/show/2589

Author: Daniel Berger
Status: Open, Priority: Normal
ruby -v: 1.8.6-p383

Hi,

If the build fails, and I try to run "gmake distclean" I see this error:

gcc -g -O2  -DRUBY_EXPORT  -L.    main.o  libruby-static.a -lrt -ldl -lcrypt -lm   -o miniruby
rbconfig.rb updated
compiling Win32API
compiling bigdecimal
gmake: *** [all] Error 1
bash-3.00$ gmake distclean
cleaning Win32API
cleaning bigdecimal
cleaning curses
/export/home/dberger/src/ruby/ruby-1.8.6-p383/lib/mkmf.rb:1077:in `configuration': undefined method `quote' for nil:NilClass (NoMethodError)
        from /export/home/dberger/src/ruby/ruby-1.8.6-p383/lib/mkmf.rb:1151:in `dummy_makefile'
        from ./ext/extmk.rb:186:in `extmake'
        from ./ext/extmk.rb:185:in `open'
        from ./ext/extmk.rb:185:in `extmake'
        from ./ext/extmk.rb:441
        from ./ext/extmk.rb:440:in `each'
        from ./ext/extmk.rb:440
gmake: [distclean-ext] Error 1 (ignored)


----------------------------------------
http://redmine.ruby-lang.org