make distclean incase of nfs shared dir

This commit is contained in:
Doug MacEachern 2009-02-16 17:53:10 -08:00
parent 36f7289082
commit aa605fcde1
1 changed files with 15 additions and 0 deletions

View File

@ -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']