Debian Codegraph @

doc/Makefile.am

raw
1 SUBDIRS = \
2 locale
3
4 BUILT_SOURCES =
5 CLEANFILES =
6
7 all:
8
9 include $(top_srcdir)/doc/files.am
10
11 SOURCES = $(srcdir)/source
12 update-examples:
13 PATH=$(abs_top_builddir)/src:$(abs_top_builddir)/src/suggest:$$PATH \
14 GRN_PLUGINS_PATH="$(abs_top_builddir)/plugins" \
15 GRN_PLUGINS_DIR="$(abs_top_srcdir)/plugins" \
16 GRN_RUBY_SCRIPTS_DIR="$(abs_top_srcdir)/lib/mrb/scripts" \
17 $(RUBY) $(srcdir)/update-execution-example.rb \
18 $(SOURCES)
19
20 files.am: update-files.rb
21 update-files
22
23 update-files: $(BUILT_SOURCES)
24 cd locale/en/LC_MESSAGES && $(MAKE) gettext
25 cd locale/en && $(MAKE) clean html
26 $(RUBY) $(srcdir)/update-files.rb
27
28 clean-html clean-text clean-markdown update-po:
29 for dir in $(SUBDIRS); do \
30 (cd $${dir} && $(MAKE) $@); \
31 done
32
33 init-locale:
34 for dir in $(SUBDIRS); do \
35 (cd $${dir} && $(MAKE) init); \
36 done
37
38 EXTRA_DIST = \
39 CMakeLists.txt \
40 files.cmake \
41 images.mk \
42 update-execution-example.rb \
43 update-files.rb \
44 $(source_files_relative_from_doc_dir)
45
46 $(source_files_relative_from_doc_dir): html
47
48 update-images:
49 cd $(srcdir)/source/_static/images && \
50 $(MAKE) -f $(abs_srcdir)/images.mk update-images
51
52 if DOCUMENT_BUILDABLE
53 dist-hook: html
54 @touch $(distdir)/build-stamp
55
56 CLEANFILES += build-stamp
57 else
58 if HAVE_BUILT_DOCUMENT
59 EXTRA_DIST += build-stamp
60 endif
61 endif