Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 146 lines (123 sloc) 3.44 kb
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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
# release: update-latest-release (commit) tag

LOCALES = ja

ACLOCAL_AMFLAGS = $$ACLOCAL_ARGS -I .
AUTOMAKE_OPTIONS = 1.9.6
SUBDIRS = \
build \
include \
lib \
plugins \
src \
examples \
test \
packages \
data \
tools \
doc
#dist_data_DATA =
EXTRA_DIST = \
bindings \
version-gen.sh \
base_version \
gpg_uid \
CMakeLists.txt \
config.h.cmake

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = groonga.pc

.PHONY: FORCE

FORCE:

$(srcdir)/version.sh: FORCE
@$(SHELL_PATH) $(srcdir)/version-gen.sh

include $(srcdir)/version.sh

dist-hook:
echo "$(GRN_VERSION)" > $(distdir)/version
@if test -d $(top_srcdir)/.git; then \
cd $(top_srcdir) && release/gitlog2changelog.py > \
$(distdir)/ChangeLog; \
else \
:; \
fi

benchmark:
cd test/benchmark && $(MAKE) benchmark

tag:
cd $(top_srcdir) && git tag v$(VERSION) -a -m 'groonga $(VERSION)!!!'

echo-version:
@echo $(VERSION)

update-latest-release:
@if test -z "$(OLD_RELEASE)"; then \
echo "\$$(OLD_RELEASE) is missing"; \
exit 1; \
fi
@if test -z "$(OLD_RELEASE_DATE)"; then \
echo "\$$(OLD_RELEASE_DATE) is missing"; \
exit 1; \
fi
@if test -z "$(NEW_RELEASE_DATE)"; then \
echo "\$$(NEW_RELEASE_DATE) is missing"; \
exit 1; \
fi
cd $(top_srcdir) && test -d "misc" || \
svn export --force \
https://cutter.svn.sourceforge.net/svnroot/cutter/cutter/trunk/misc
cd $(top_srcdir) && \
misc/update-latest-release.rb \
$(PACKAGE) $(OLD_RELEASE) $(OLD_RELEASE_DATE) \
$(VERSION) $(NEW_RELEASE_DATE) \
packages/rpm/fedora/groonga.spec.in \
packages/rpm/centos/groonga.spec.in \
packages/debian/changelog \
doc/source/install.txt \
doc/source/install/*.txt \
doc/locale/*/LC_MESSAGES/install.po \
$(GROONGA_GITHUB_COM_PATH)/index.html \
$(GROONGA_GITHUB_COM_PATH)/ja/index.html

update-po:
@for lang in $(LOCALES); do \
(cd $(top_srcdir)/doc/locale/$$lang/LC_MESSAGES && $(MAKE) update) \
done

update-document:
@if test -z "$(GROONGA_GITHUB_COM_PATH)"; then \
echo "\$$(GROONGA_GITHUB_COM_PATH) is missing"; \
echo "add --with-groonga-github-com-path in configure"; \
exit 1; \
fi
rm -rf tmp-doc
mkdir tmp-doc
(cd doc && $(MAKE) clean-html)
(cd doc && $(MAKE) install docdir=$(abs_srcdir)/tmp-doc/install)
ruby $(srcdir)/tools/prepare-sphinx-html.rb tmp-doc/install tmp-doc/dist
rm -rf $(GROONGA_GITHUB_COM_PATH)/docs
mv tmp-doc/dist/en $(GROONGA_GITHUB_COM_PATH)/docs
for locale in `cd tmp-doc/dist; echo *`; do \
dest_base_dir=$(GROONGA_GITHUB_COM_PATH)/$${locale}; \
mkdir -p $${dest_base_dir}; \
dest_dir=$${dest_base_dir}/docs; \
rm -rf $${dest_dir}; \
mv tmp-doc/dist/$${locale} $${dest_dir}; \
done


echo-cutter:
@echo $(CUTTER)

if WITH_RUBY
echo-ruby:
@echo $(RUBY)
else
echo-ruby:
endif

echo-groonga:
@echo $(GROONGA)

echo-groonga-httpd:
@echo $(GROONGA_HTTPD)

echo-groonga-suggest-create-dataset:
@echo $(GROONGA_SUGGEST_CREATE_DATASET)

echo-groonga-benchmark:
@echo $(GROONGA_BENCHMARK)

update-version:
@if test -z "$(NEW_VERSION)"; then \
echo "\$$(NEW_VERSION) is missing"; \
exit 1; \
fi
@echo -n $(NEW_VERSION) > $(srcdir)/base_version

update-files:
cd doc && $(MAKE) update-files
cd data/html && $(MAKE) update-files
cd test/function && $(MAKE) update-files
Something went wrong with that request. Please try again.