c10705dc69b549003b79cf689d2f3c30b5665a36
[strongswan.git] / src / libcharon / plugins / vici / ruby / Makefile.am
1 EXTRA_DIST = vici.gemspec.in lib/vici.rb
2
3 vici.gemspec: $(srcdir)/vici.gemspec.in
4         $(AM_V_GEN) sed \
5         -e "s:@GEM_VERSION@:$(PACKAGE_VERSION):" \
6         $(srcdir)/vici.gemspec.in > $@
7
8 vici-$(PACKAGE_VERSION).gem: vici.gemspec
9         (cd $(srcdir); $(GEM) build $(abs_builddir)/vici.gemspec)
10         [ "$(srcdir)" = "$(builddir)" ] || \
11                 mv $(srcdir)/vici-$(PACKAGE_VERSION).gem $(builddir)
12
13 all-local: vici-$(PACKAGE_VERSION).gem
14
15 clean-local:
16         rm -f vici.gemspec vici-$(PACKAGE_VERSION).gem
17
18 install-data-local: vici-$(PACKAGE_VERSION).gem
19         $(GEM) install --install-dir $(DESTDIR)$(RUBYGEMDIR) \
20                 vici-$(PACKAGE_VERSION).gem
21
22 uninstall-local:
23         $(GEM) uninstall --install-dir $(DESTDIR)$(RUBYGEMDIR) \
24                 --version $(PACKAGE_VERSION) vici