aboutsummaryrefslogtreecommitdiff
path: root/doc/api/ruby/Makefile.am
blob: ceab0be3ec46f747e2c411e5660dfdd6a39164df (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
SUBDIRS = .

CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda
MAINTAINERCLEANFILES = Makefile.in

built-sources : $(BUILT_SOURCES)
	for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s built-sources || exit 1 ; done

distcheck-deps : $(DISTCHECK_DEPS) distcheck-deps-subdirs

distcheck-deps-subdirs :
	for s in `echo $(DIST_SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s distcheck-deps || exit 1 ; done

htmldocs : htmldocs-subdirs

htmldocs-subdirs :
	for s in $(SUBDIRS) . ; do if test x$$s = x. ; then $(MAKE) htmldocs-local || exit 1 ; \
	    else $(MAKE) -C $$s htmldocs || exit 1 ; fi ; done

htmldocs-local : $(paludisapirubyhtml_DATA)

dist_noinst_SCRIPTS = create_ruby_doc.rb \
		      create_ruby_examples.rb

examples = \
	example_command_line.rb \
	example_about.rb \
	example_action.rb \
	example_contents.rb \
	example_dep_spec.rb \
	example_dep_tree.rb \
	example_query.rb \
	example_version_operator.rb \
	example_version_spec.rb

EXTRA_DIST = $(examples) \
	     ruby_syntax.css

if ENABLE_RUBY

all-local : rdoc

rdoc : ruby

ruby : create_ruby_doc.rb create_ruby_examples.rb ruby_syntax.css $(examples)
	rm -fr ruby
	env TOP_SRCDIR="$(top_srcdir)" $(RUBY) \
	    $(srcdir)/create_ruby_doc.rb -t "Paludis Ruby API" -m Paludis --op ruby \
		$(top_srcdir)/ruby/*.cc
	$(RUBY) $(srcdir)/create_ruby_examples.rb $(srcdir) $(examples)
	cp $(srcdir)/ruby_syntax.css ruby

install-data-local :
	mkdir -p $(DESTDIR)$(htmldir)/api
	cp -R ruby/ $(DESTDIR)$(htmldir)/api/

endif

clean-local :
	rm -fr ruby

uninstall-local :
	rm -fr $(DESTDIR)$(htmldir)/api/ruby