git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
appliance: udev-174 moves udevd to /lib/udev/udevd (instead of /sbin/udevd)
[libguestfs.git]
/
ruby
/
Rakefile.in
diff --git
a/ruby/Rakefile.in
b/ruby/Rakefile.in
index
400ea0f
..
ccbcae1
100644
(file)
--- a/
ruby/Rakefile.in
+++ b/
ruby/Rakefile.in
@@
-27,7
+27,7
@@
PKG_VERSION='@PACKAGE_VERSION@'
EXT_CONF='@srcdir@/ext/guestfs/extconf.rb'
MAKEFILE='@builddir@/ext/guestfs/Makefile'
GUESTFS_MODULE='@builddir@/ext/guestfs/_guestfs.so'
EXT_CONF='@srcdir@/ext/guestfs/extconf.rb'
MAKEFILE='@builddir@/ext/guestfs/Makefile'
GUESTFS_MODULE='@builddir@/ext/guestfs/_guestfs.so'
-GUESTFS_SRC='@
build
dir@/ext/guestfs/_guestfs.c'
+GUESTFS_SRC='@
src
dir@/ext/guestfs/_guestfs.c'
CLEAN.include [ "@builddir@/ext/**/*.o", GUESTFS_MODULE,
"@builddir@/ext/**/depend" ]
CLEAN.include [ "@builddir@/ext/**/*.o", GUESTFS_MODULE,
"@builddir@/ext/**/depend" ]
@@
-38,7
+38,7
@@
CLOBBER.include [ "@builddir@/config.save", "@builddir@/ext/**/mkmf.log",
# Build locally
file MAKEFILE => EXT_CONF do |t|
# Build locally
file MAKEFILE => EXT_CONF do |t|
- unless sh "top_srcdir=$(pwd)/@top_srcdir@; top_builddir=$(pwd)/@top_builddir@; cd #{File::dirname(EXT_CONF)}; ruby #{File::basename(EXT_CONF)} --with-_guestfs-include=$top_srcdir/src --with-_guestfs-lib=$top_builddir/src/.libs"
+ unless sh "top_srcdir=$(pwd)/@top_srcdir@; top_builddir=$(pwd)/@top_builddir@;
export ARCHFLAGS=\"-arch $(uname -m)\";
cd #{File::dirname(EXT_CONF)}; ruby #{File::basename(EXT_CONF)} --with-_guestfs-include=$top_srcdir/src --with-_guestfs-lib=$top_builddir/src/.libs"
$stderr.puts "Failed to run extconf"
break
end
$stderr.puts "Failed to run extconf"
break
end
@@
-60,10
+60,23
@@
Rake::TestTask.new(:test) do |t|
end
task :test => :build
end
task :test => :build
+RDOC_FILES = FileList[
+ "README.rdoc",
+ "lib/**/*.rb",
+ "ext/**/*.[ch]"
+]
+
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_dir = "doc/site/api"
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_dir = "doc/site/api"
- rd.rdoc_files.include("README.rdoc", "lib/**/*.rb", "ext/**/*.[ch]")
+ rd.rdoc_files.include(RDOC_FILES)
+end
+
+Rake::RDocTask.new(:ri) do |rd|
+ rd.main = "README.rdoc"
+ rd.rdoc_dir = "doc/ri"
+ rd.options << "--ri-system"
+ rd.rdoc_files.include(RDOC_FILES)
end
# Package tasks
end
# Package tasks