From aa605fcde18938650482704613efdb560605afdd Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 16 Feb 2009 17:53:10 -0800 Subject: [PATCH] make distclean incase of nfs shared dir --- bindings/ruby/extconf.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb index ea2aec65..8271deb3 100644 --- a/bindings/ruby/extconf.rb +++ b/bindings/ruby/extconf.rb @@ -61,6 +61,21 @@ osdir = "../../src/os/#{os}" $CPPFLAGS += ' -I../../include' + ' -I' + osdir $CPPFLAGS += ' -U_FILE_OFFSET_BITS' unless is_win32 +#incase of nfs shared dir... +unless is_win32 + if File.exist?('Makefile') + cmd = 'make distclean' + print cmd + "\n" + system(cmd) + end + Dir["./*.c"].each do |file| + if File.lstat(file).symlink? + print "unlink #{file}\n" + File.delete(file) + end + end +end + system('perl -Mlib=.. -MSigarWrapper -e generate Ruby .') $distcleanfiles = ['rbsigar_generated.rx']