Debian Codegraph @

Makefile.am

raw
1 # release: update-latest-release (commit) tag
2
3 LOCALES = ja
4
5 ACLOCAL_AMFLAGS = -I m4
6 AUTOMAKE_OPTIONS = 1.9.6
7 SUBDIRS = \
8 build \
9 cmake \
10 include \
11 vendor \
12 lib \
13 plugins \
14 src \
15 examples \
16 test \
17 benchmark \
18 packages \
19 data \
20 tools \
21 doc
22 EXTRA_DIST = \
23 CMakeLists.txt \
24 CMakePresets.json \
25 README.md \
26 base_version \
27 bindings \
28 build.sh \
29 bundled_lz4_version \
30 bundled_mecab_naist_jdic_version \
31 bundled_mecab_version \
32 bundled_rapidjson_version \
33 bundled_xxhash_version \
34 config.h.cmake.in \
35 setup.sh \
36 version-gen.sh
37 pkgdata_DATA = COPYING
38
39 pkgconfigdir = $(libdir)/pkgconfig
40 pkgconfig_DATA = groonga.pc
41 if GRN_WITH_APACHE_ARROW
42 pkgconfig_DATA += groonga-arrow.pc
43 endif
44
45 .PHONY: FORCE
46
47 FORCE:
48
49 $(srcdir)/version.sh: FORCE
50 cd "$(srcdir)" && $(SHELL) version-gen.sh
51
52 include $(srcdir)/version.sh
53
54 dist-hook:
55 echo "$(GRN_VERSION)" > $(distdir)/full_version
56 echo "GRN_VERSION_FULL=$(GRN_VERSION)" > $(distdir)/version.sh
57 cd $(distdir) && autoreconf --install --force && find . -name autom4te.cache | xargs rm -fr
58
59 benchmark:
60 cd test/benchmark && $(MAKE) benchmark
61
62 tag:
63 cd $(top_srcdir) && git tag v$(VERSION) -a -m 'Groonga $(VERSION)!!!'
64
65 echo-version:
66 @echo $(VERSION)
67
68 update-latest-release:
69 cd $(top_srcdir) && \
70 $(RUBY) -S rake release:version:update
71
72 update-po:
73 @for lang in $(LOCALES); do \
74 (cd $(top_srcdir)/doc/locale/$$lang/LC_MESSAGES && $(MAKE) update) \
75 done
76
77 update-document:
78 @if test -z "$(GROONGA_ORG_PATH)"; then \
79 echo "\$$(GROONGA_ORG_PATH) is missing"; \
80 echo "add --with-groonga-org-path in configure"; \
81 exit 1; \
82 fi
83 rm -rf tmp-doc
84 mkdir tmp-doc
85 (cd doc && $(MAKE) clean-html)
86 (cd doc && $(MAKE) install docdir=$(abs_builddir)/tmp-doc/install)
87 rm -rf $(GROONGA_ORG_PATH)/docs
88 mv tmp-doc/install/en/html $(GROONGA_ORG_PATH)/docs
89 rm -rf tmp-doc/install/en
90 for locale in $$(cd tmp-doc/install/; echo *); do \
91 dest_base_dir=$(GROONGA_ORG_PATH)/$${locale}; \
92 mkdir -p $${dest_base_dir}; \
93 dest_dir=$${dest_base_dir}/docs; \
94 rm -rf $${dest_dir}; \
95 mv tmp-doc/install/$${locale}/html $${dest_dir}; \
96 done
97
98
99 update-version:
100 @if test -z "$(NEW_VERSION)"; then \
101 echo "\$$(NEW_VERSION) is missing"; \
102 exit 1; \
103 fi
104 @echo -n $(NEW_VERSION) > $(srcdir)/base_version
105
106 update-files:
107 cd doc && $(MAKE) update-files
108 cd data/html && $(MAKE) update-files
109
110 update-mruby:
111 cd vendor/mruby && make update