## Copyright (C) 2007 Noah Slater . ## Copying and distribution of this file, with or without modification, are ## permitted in any medium without royalty provided the copyright notice and ## this notice are preserved. datarootdir = @prefix@/share SUBDIRS = CouchDB libbin_SCRIPTS = _couchjs erlangbin_DATA = couch.boot couchebindir = $(erlanglibdir)/couch-$(version)/ebin couchincludedir = $(erlanglibdir)/couch-$(version)/include couchinetsebindir = $(erlanglibdir)/couch_inets-4.7.5/ebin couchinetsincludedir = $(erlanglibdir)/couch_inets-4.7.5/include couch_file_collection = \ CouchDB/cjson.erl \ CouchDB/couch_btree.erl \ CouchDB/couch_db.erl \ CouchDB/couch_db_sup.erl \ CouchDB/couch_db_update_notifier.erl \ CouchDB/couch_doc.erl \ CouchDB/couch_event_sup.erl \ CouchDB/couch_file.erl \ CouchDB/couch_ft_query.erl \ CouchDB/couch_log.erl \ CouchDB/couch_query_servers.erl \ CouchDB/couch_rep.erl \ CouchDB/couch_server.erl \ CouchDB/couch_server_sup.erl \ CouchDB/couch_stew_group.erl \ CouchDB/couch_stream.erl \ CouchDB/couch_util.erl \ CouchDB/couch_view_group.erl \ CouchDB/mod_couch.erl couchebin_DATA = \ CouchDB/cjson.beam \ CouchDB/couch.app \ CouchDB/couch_btree.beam \ CouchDB/couch_db.beam \ CouchDB/couch_db_sup.beam \ CouchDB/couch_db_update_notifier.beam \ CouchDB/couch_doc.beam \ CouchDB/couch_event_sup.beam \ CouchDB/couch_file.beam \ CouchDB/couch_ft_query.beam \ CouchDB/couch_log.beam \ CouchDB/couch_query_servers.beam \ CouchDB/couch_rep.beam \ CouchDB/couch_server.beam \ CouchDB/couch_server_sup.beam \ CouchDB/couch_stew_group.beam \ CouchDB/couch_stream.beam \ CouchDB/couch_util.beam \ CouchDB/couch_view_group.beam \ CouchDB/mod_couch.beam couchinclude_DATA = CouchDB/couch_db.hrl couchinets_file_collection = \ couch_inets/ftp.erl \ couch_inets/ftp_progress.erl \ couch_inets/ftp_response.erl \ couch_inets/ftp_sup.erl \ couch_inets/http_base_64.erl \ couch_inets/httpc_handler.erl \ couch_inets/http_chunk.erl \ couch_inets/httpc_manager.erl \ couch_inets/http_cookie.erl \ couch_inets/httpc_request.erl \ couch_inets/httpc_response.erl \ couch_inets/httpc_sup.erl \ couch_inets/httpd_acceptor.erl \ couch_inets/httpd_acceptor_sup.erl \ couch_inets/httpd_cgi.erl \ couch_inets/httpd_conf.erl \ couch_inets/httpd.erl \ couch_inets/httpd_esi.erl \ couch_inets/httpd_example.erl \ couch_inets/httpd_instance_sup.erl \ couch_inets/httpd_manager.erl \ couch_inets/httpd_misc_sup.erl \ couch_inets/httpd_request.erl \ couch_inets/httpd_request_handler.erl \ couch_inets/httpd_response.erl \ couch_inets/httpd_script_env.erl \ couch_inets/httpd_socket.erl \ couch_inets/httpd_sup.erl \ couch_inets/httpd_util.erl \ couch_inets/http.erl \ couch_inets/http_request.erl \ couch_inets/http_response.erl \ couch_inets/http_transport.erl \ couch_inets/http_uri.erl \ couch_inets/http_util.erl \ couch_inets/inets_app.erl \ couch_inets/inets.erl \ couch_inets/inets_sup.erl \ couch_inets/mod_actions.erl \ couch_inets/mod_alias.erl \ couch_inets/mod_auth_dets.erl \ couch_inets/mod_auth.erl \ couch_inets/mod_auth_mnesia.erl \ couch_inets/mod_auth_plain.erl \ couch_inets/mod_auth_server.erl \ couch_inets/mod_browser.erl \ couch_inets/mod_cgi.erl \ couch_inets/mod_dir.erl \ couch_inets/mod_disk_log.erl \ couch_inets/mod_esi.erl \ couch_inets/mod_get.erl \ couch_inets/mod_head.erl \ couch_inets/mod_htaccess.erl \ couch_inets/mod_include.erl \ couch_inets/mod_log.erl \ couch_inets/mod_range.erl \ couch_inets/mod_responsecontrol.erl \ couch_inets/mod_security.erl \ couch_inets/mod_security_server.erl \ couch_inets/mod_trace.erl \ couch_inets/tftp_binary.erl \ couch_inets/tftp_engine.erl \ couch_inets/tftp.erl \ couch_inets/tftp_file.erl \ couch_inets/tftp_lib.erl \ couch_inets/tftp_sup.erl couchinetsebin_static_file = couch_inets/couch_inets.app couchinetsebin_make_generated_file_list = \ couch_inets/ftp.beam \ couch_inets/ftp_progress.beam \ couch_inets/ftp_response.beam \ couch_inets/ftp_sup.beam \ couch_inets/http_base_64.beam \ couch_inets/http.beam \ couch_inets/httpc_handler.beam \ couch_inets/http_chunk.beam \ couch_inets/httpc_manager.beam \ couch_inets/http_cookie.beam \ couch_inets/httpc_request.beam \ couch_inets/httpc_response.beam \ couch_inets/httpc_sup.beam \ couch_inets/httpd_acceptor.beam \ couch_inets/httpd_acceptor_sup.beam \ couch_inets/httpd.beam \ couch_inets/httpd_cgi.beam \ couch_inets/httpd_conf.beam \ couch_inets/httpd_esi.beam \ couch_inets/httpd_example.beam \ couch_inets/httpd_instance_sup.beam \ couch_inets/httpd_manager.beam \ couch_inets/httpd_misc_sup.beam \ couch_inets/httpd_request.beam \ couch_inets/httpd_request_handler.beam \ couch_inets/httpd_response.beam \ couch_inets/httpd_script_env.beam \ couch_inets/httpd_socket.beam \ couch_inets/httpd_sup.beam \ couch_inets/httpd_util.beam \ couch_inets/http_request.beam \ couch_inets/http_response.beam \ couch_inets/http_transport.beam \ couch_inets/http_uri.beam \ couch_inets/http_util.beam \ couch_inets/inets_app.beam \ couch_inets/inets.beam \ couch_inets/inets_sup.beam \ couch_inets/mod_actions.beam \ couch_inets/mod_alias.beam \ couch_inets/mod_auth.beam \ couch_inets/mod_auth_dets.beam \ couch_inets/mod_auth_mnesia.beam \ couch_inets/mod_auth_plain.beam \ couch_inets/mod_auth_server.beam \ couch_inets/mod_browser.beam \ couch_inets/mod_cgi.beam \ couch_inets/mod_dir.beam \ couch_inets/mod_disk_log.beam \ couch_inets/mod_esi.beam \ couch_inets/mod_get.beam \ couch_inets/mod_head.beam \ couch_inets/mod_htaccess.beam \ couch_inets/mod_include.beam \ couch_inets/mod_log.beam \ couch_inets/mod_range.beam \ couch_inets/mod_responsecontrol.beam \ couch_inets/mod_security.beam \ couch_inets/mod_security_server.beam \ couch_inets/mod_trace.beam \ couch_inets/tftp.beam \ couch_inets/tftp_binary.beam \ couch_inets/tftp_engine.beam \ couch_inets/tftp_file.beam \ couch_inets/tftp_lib.beam \ couch_inets/tftp_sup.beam couchinetsebin_DATA = \ $(couchinetsebin_static_file) \ $(couchinetsebin_make_generated_file_list) couchinetsinclude_DATA = \ couch_inets/ftp_internal.hrl \ couch_inets/httpc_internal.hrl \ couch_inets/httpd.hrl \ couch_inets/http_internal.hrl \ couch_inets/inets_internal.hrl \ couch_inets/mod_auth.hrl \ couch_inets/tftp.hrl EXTRA_DIST = \ $(couch_file_collection) \ $(couchinets_file_collection) \ $(couchinclude_DATA) \ $(couchinetsinclude_DATA) \ $(couchinetsebin_static_file) \ js CLEANFILES = \ $(couchebin_DATA) \ $(couchinetsebin_make_generated_file_list) \ build_couch.beam \ couch.boot \ couch.rel \ couch.script \ _couchjs # XXX: The JavaScript interpreter has been externally developed and does not use # XXX: our build system so we must copy the subdirectory, decend into it and # XXX: invoke a separate make process. _couchjs: $(srcdir)/js/* rm -rf _js; \ cp -rp "$(srcdir)"/js _js; \ find _js -exec chmod u+w \{\} \;; \ cd _js && $(MAKE) -f Makefile.ref mv _js/js $@ rm -rf _js; \ chmod +x $@ build_couch.beam: build_couch.erl $(ERLC) build_couch.erl couch.boot: $(couch_file_collection) $(couchinets_file_collection) build_couch.beam if test -n "$(mkdir_p)"; then \ $(mkdir_p) CouchDB; \ $(mkdir_p) couch_inets; \ else \ mkdir -p CouchDB; \ mkdir -p couch_inets; \ fi if test "$(top_srcdir)" != "$(top_builddir)"; then \ cp -p "$(srcdir)"/couch_inets/couch_inets.app couch_inets; \ cp -p "$(srcdir)"/couch_inets/*.erl couch_inets; \ cp -p "$(srcdir)"/couch_inets/*.hrl couch_inets; \ cp -p "$(srcdir)"/CouchDB/*.erl CouchDB; \ cp -p "$(srcdir)"/CouchDB/*.hrl CouchDB; \ fi $(ERL) -noshell -run build_couch compile_all if test "$(top_srcdir)" != "$(top_builddir)"; then \ rm -f couch_inets/couch_inets.app; \ rm -f couch_inets/*.erl; \ rm -f couch_inets/*.hrl; \ rm -f CouchDB/*.erl; \ rm -f CouchDB/*.hrl; \ fi $(couchebin_DATA) $(couchinetsebin_make_generated_file_list): couch.boot clean-local: rm -rf js/editline/*.OBJ rm -rf js/fdlibm/*.OBJ rm -rf js/*.OBJ