vici: Support ruby gem out-of-tree builds

Referencing $(srcdir) in the gemspec is not really an option, as "gem build"
includes the full path in the gem, so we need to build in $(srcdir). As there
does not seem to be a way to control the output of "gem build", we manually
move the gem to $(builddir) in OOT builds.
This commit is contained in:
Martin Willi 2015-02-27 11:40:50 +01:00
parent e722ee5df8
commit 1151c9922a
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@ vici.gemspec: $(srcdir)/vici.gemspec.in
$(srcdir)/vici.gemspec.in > $@
vici-$(PACKAGE_VERSION).gem: vici.gemspec
$(GEM) build vici.gemspec
(cd $(srcdir); $(GEM) build $(abs_builddir)/vici.gemspec)
[ "$(srcdir)" = "$(builddir)" ] || \
mv $(srcdir)/vici-$(PACKAGE_VERSION).gem $(builddir)
all-local: vici-$(PACKAGE_VERSION).gem