Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

108 lines (94 sloc) 3.958 kb
## Licensed under the Apache License, Version 2.0 (the "License"); you may not
## use this file except in compliance with the License. You may obtain a copy of
## the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
## License for the specific language governing permissions and limitations under
## the License.
couch_set_viewlibdir = $(localerlanglibdir)/couch_set_view-1.0.0
couch_set_viewincludedir = $(couch_set_viewlibdir)/include
couch_set_viewebindir = $(couch_set_viewlibdir)/ebin
couch_set_viewinclude_DATA = $(include_files)
couch_set_viewebin_DATA = $(compiled_files)
include_files = \
include/couch_set_view.hrl
source_files = \
src/couch_set_view.app.src \
src/couch_set_view.erl \
src/couch_set_view_http.erl \
src/couch_set_view_group.erl \
src/couch_set_view_updater.erl \
src/couch_set_view_compactor.erl \
src/couch_set_view_util.erl \
src/couch_set_view_mapreduce.erl \
src/couch_db_set.erl \
src/couch_index_barrier.erl \
src/couch_set_view_ddoc_cache.erl \
test/couch_set_view_test_util.erl
test_files = \
test/00-prepare.t \
test/01-load.t \
test/01-collation.t \
test/01-headers.t \
test/02-old-index-cleanup.t \
test/03-db-compaction-file-leaks.t \
test/04-handle-db-deletes.t \
test/05-replicas-transfer.t \
test/06-main-compaction.t \
test/07-replica-compaction.t \
test/08-deletes-cleanup.t \
test/09-deletes-cleanup-many-views.t \
test/10-updates-cleanup.t \
test/11-updates-cleanup-many-views.t \
test/12-errors.t \
test/13-progressive-cleanup.t \
test/14-duplicated-keys-per-doc.t \
test/15-passive-partitions.t \
test/16-pending-transition.t \
test/17-unindexable-partitions.t \
test/18-monitor-partition-updates.t \
test/19-compaction-retry.t \
test/20-debug-params.t \
test/21-updater-cleanup.t \
test/22-compactor-cleanup.t
compiled_files = \
ebin/couch_set_view.app \
ebin/couch_set_view.beam \
ebin/couch_set_view_http.beam \
ebin/couch_set_view_group.beam \
ebin/couch_set_view_updater.beam \
ebin/couch_set_view_compactor.beam \
ebin/couch_set_view_util.beam \
ebin/couch_set_view_mapreduce.beam \
ebin/couch_db_set.beam \
ebin/couch_index_barrier.beam \
ebin/couch_set_view_ddoc_cache.beam \
test/couch_set_view_test_util.beam
EXTRA_DIST = $(include_files) $(source_files) $(test_files) test/run.tpl
CLEANFILES = $(compiled_files) test/run
noinst_SCRIPTS = test/run
TEST_JOBS ?= 3
maybe_jN = $(if $(shell prove --help | grep jobs), -j$(TEST_JOBS))
check:
$(abs_top_builddir)/src/couch_set_view/test/run $(abs_top_srcdir)/src/couch_set_view/test/00-prepare.t
$(abs_top_builddir)/src/couch_set_view/test/run $(maybe_jN) $(abs_top_srcdir)/src/couch_set_view/test
test/run: test/run.tpl
sed -e "s|%abs_top_srcdir%|@abs_top_srcdir@|g" \
-e "s|%abs_top_builddir%|@abs_top_builddir@|g" > \
$@ < $<
chmod +x $@
ebin/%.app: src/%.app.src
@mkdir -p ebin/
sed -e "s|%version%|@version@|g" \
< $< > $@
ebin/%.beam: src/%.erl $(include_files) $(top_srcdir)/src/couchdb/couch_db.hrl $(top_srcdir)/src/couch_index_merger/include/couch_index_merger.hrl $(top_srcdir)/src/couch_index_merger/include/couch_view_merger.hrl
@mkdir -p ebin/
$(ERLC) -Wall -I$(top_srcdir)/src -I$(top_srcdir)/src/couchdb \
-o ebin/ $(ERLC_FLAGS) ${TEST} $<;
test/%.beam: test/%.erl $(include_files) $(top_srcdir)/src/couchdb/couch_db.hrl $(top_srcdir)/src/couch_index_merger/include/couch_index_merger.hrl $(top_srcdir)/src/couch_index_merger/include/couch_view_merger.hrl
$(ERLC) -Wall -I$(top_srcdir)/src -I$(top_srcdir)/src/couchdb \
-o test/ $(ERLC_FLAGS) ${TEST} $<;
Jump to Line
Something went wrong with that request. Please try again.