summaryrefslogtreecommitdiff
path: root/src/libcharon/plugins/vici/ruby/Makefile.am
blob: 3e12f86cc6807f80bb25a105429874678651a4ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
EXTRA_DIST = vici.gemspec.in lib/vici.rb

vici.gemspec: $(srcdir)/vici.gemspec.in
	$(AM_V_GEN) sed \
	-e "s:@GEM_VERSION@:$(PACKAGE_VERSION):" \
	$(srcdir)/vici.gemspec.in > $@

vici-$(PACKAGE_VERSION).gem: vici.gemspec $(EXTRA_DIST)
	(cd $(srcdir); $(GEM) build $(abs_builddir)/vici.gemspec)
	[ "$(srcdir)" = "$(builddir)" ] || \
		mv $(srcdir)/vici-$(PACKAGE_VERSION).gem $(builddir)

all-local: vici-$(PACKAGE_VERSION).gem

clean-local:
	rm -f vici.gemspec vici-$(PACKAGE_VERSION).gem

install-data-local: vici-$(PACKAGE_VERSION).gem
	$(GEM) install --install-dir $(DESTDIR)$(RUBYGEMDIR) \
		vici-$(PACKAGE_VERSION).gem

uninstall-local:
	$(GEM) uninstall --install-dir $(DESTDIR)$(RUBYGEMDIR) \
		--version $(PACKAGE_VERSION) vici