Fix Makefile rules for `make distcheck`
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/2e3e6936 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/2e3e6936 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/2e3e6936 Branch: refs/heads/1963-eunit Commit: 2e3e693666e557e89c5869ba2ee4614bd394ad71 Parents: 947261d Author: Alexander Shorin <[email protected]> Authored: Mon Jun 23 00:40:56 2014 +0400 Committer: Alexander Shorin <[email protected]> Committed: Mon Jun 23 15:55:52 2014 +0400 ---------------------------------------------------------------------- test/couchdb/Makefile.am | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/2e3e6936/test/couchdb/Makefile.am ---------------------------------------------------------------------- diff --git a/test/couchdb/Makefile.am b/test/couchdb/Makefile.am index 2de2a90..fcc8d19 100644 --- a/test/couchdb/Makefile.am +++ b/test/couchdb/Makefile.am @@ -14,15 +14,6 @@ SUBDIRS = fixtures noinst_SCRIPTS = run -all: - mkdir -p ebin - mkdir -p temp - ${ERLC} -Wall -I$(top_srcdir)/src -I$(top_srcdir)/test/couchdb/include \ - -o ebin/ test_request.erl test_web.erl - chmod +x run - chmod +x fixtures/*.sh - chmod -x fixtures/os_daemon_bad_perm.sh - eunit_files = \ couch_auth_cache_tests.erl \ couch_btree_tests.erl \ @@ -78,6 +69,15 @@ EXTRA_DIST = \ $(eunit_files) \ $(fixture_files) +all: + @mkdir -p ebin/ + @mkdir -p temp/ + $(ERLC) -Wall -I$(top_srcdir)/src -I$(top_srcdir)/test/couchdb/include \ + -o $(top_builddir)/test/couchdb/ebin/ $(ERLC_FLAGS) ${TEST} \ + $(top_srcdir)/test/couchdb/test_request.erl \ + $(top_srcdir)/test/couchdb/test_web.erl + chmod +x run + clean-local: - rm -rf ebin - rm -rf temp + rm -rf ebin/ + rm -rf temp/
