diff options
| author | Martin Willi <martin@revosec.ch> | 2015-02-27 11:40:50 +0100 |
|---|---|---|
| committer | Martin Willi <martin@revosec.ch> | 2015-02-27 11:44:20 +0100 |
| commit | 1151c9922aed27b2e8ecc18630941a56b2dab44e (patch) | |
| tree | 8c26a3f8ff1482d410b8f73ae4e51d24741338f4 /src/libcharon/plugins/vici/ruby | |
| parent | e722ee5df82a292c87adfad23359b35793589798 (diff) | |
| download | strongswan-1151c9922aed27b2e8ecc18630941a56b2dab44e.tar.bz2 strongswan-1151c9922aed27b2e8ecc18630941a56b2dab44e.tar.xz | |
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.
Diffstat (limited to 'src/libcharon/plugins/vici/ruby')
| -rw-r--r-- | src/libcharon/plugins/vici/ruby/Makefile.am | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcharon/plugins/vici/ruby/Makefile.am b/src/libcharon/plugins/vici/ruby/Makefile.am index ce38e1c3d..c10705dc6 100644 --- a/src/libcharon/plugins/vici/ruby/Makefile.am +++ b/src/libcharon/plugins/vici/ruby/Makefile.am @@ -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 |
