aboutsummaryrefslogtreecommitdiff
path: root/ruby/demos/Makefile.am
blob: 6872df57fa8349c496bcb81a0b83fffcc3d0b9f0 (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
25
26
27
28
29
30
31
32
33
34
include $(top_srcdir)/misc/common-makefile.am

SUBDIRS = .

AM_CXXFLAGS = -I$(top_srcdir) -I$(srcdir)/ -I$(top_srcdir)/ruby/ \
	      @PALUDIS_CXXFLAGS@

DEFS= \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
	-DDATADIR=\"$(datadir)\" \
	-DLIBEXECDIR=\"$(libexecdir)\" \
	-DLIBDIR=\"$(libdir)\"

IF_RUBY_DEMOS = \
	version_spec_distributions.rb \
	latest_stable.rb \
	playman.rb

EXTRA_DIST = $(IF_RUBY_DEMOS)

if ENABLE_RUBY

rubydemosdir = $(datadir)/paludis/ruby/demos/
rubydemos_SCRIPTS = $(IF_RUBY_DEMOS)

install-exec-local :
	$(INSTALL) -d $(DESTDIR)$(bindir)
	ln -sf $(rubydemosdir)/playman.rb $(DESTDIR)$(bindir)/playman

uninstall-local :
	rm $(DESTDIR)$(bindir)/playman

endif