summaryrefslogtreecommitdiff
path: root/cpp/rubygen
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-05-27 17:20:37 +0000
committerAlan Conway <aconway@apache.org>2008-05-27 17:20:37 +0000
commit424e22fd6eb00e51478fa20c472e964dce5683ea (patch)
tree465876eef342c82de77f4440728c394d50284ff1 /cpp/rubygen
parent69f2797d247f2271592cc4a2cb0538e654868606 (diff)
downloadqpid-python-424e22fd6eb00e51478fa20c472e964dce5683ea.tar.gz
Generate code in $builddir to allow multiple VPATH builds.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@660616 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen')
-rwxr-xr-xcpp/rubygen/generate11
1 files changed, 1 insertions, 10 deletions
diff --git a/cpp/rubygen/generate b/cpp/rubygen/generate
index c025c946c7..9acbd4fe83 100755
--- a/cpp/rubygen/generate
+++ b/cpp/rubygen/generate
@@ -71,7 +71,7 @@ if makefile
rgen_srcs=GenFiles.get.map{ |f| "#{$outdir}/#{f}" }
rgen_subdirs={}
rgen_srcs.each { |src|
- if src.match(%r{./gen/qpid/([^/]+)/})
+ if src.match(%r{#{$outdir}/qpid/([^/]+)/})
subdir=$1
rgen_subdirs[subdir] ||= []
rgen_subdirs[subdir] << src
@@ -102,15 +102,6 @@ dist_#{dir_}_HEADERS = #{make_continue rgen_srcs.grep(regex)}
EOS
}
- out << <<EOS
-if GENERATE
-$(srcdir)/#{File.basename makefile}: $(rgen_generator) $(specs)
- $(rgen_cmd)
-
-# Empty rule in case a generator file is renamed/removed.
-$(rgen_generator):
-endif
-EOS
}
end