summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-06-05 14:33:27 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-06-05 14:33:27 +0200 |
commit | 983ed9d0e8da15cb8c304fea62c25d3b053e712b (patch) | |
tree | 71a2aa7618692abe46a7fb07c590995f97b56d97 /src/db/Makefile | |
parent | 25b3f31c8a451044459d104a3a36f919557b8d20 (diff) |
Has the DB run as a separate node.
I am still figuring out how Erlang handles node connections... It would
seem that spawn(NODE, ...) automatically initiates the connection to
NODE (i.e. no need to use net_kernel:connect_node before).
Diffstat (limited to 'src/db/Makefile')
-rw-r--r-- | src/db/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/db/Makefile b/src/db/Makefile index d7b6eed..206a332 100644 --- a/src/db/Makefile +++ b/src/db/Makefile @@ -17,6 +17,13 @@ INCLUDE_DIR ?= ${CURDIR}/include ## Binaries ERLC ?= erlc ERLC_OPTS ?= +ERL ?= erl +ERL_OPTS ?= \ + -connect_all false \ + -name db_node \ + -pa $(BIN_DIR) \ + -run db_node start + DIALYZER ?= dialyzer ################################################################################ @@ -52,6 +59,7 @@ debug: debug_run build: $(REQUIRED_HEADERS) $(PREPROCESSOR_RESULT) $(ERLANG_RESULT) run: + $(ERL) $(ERL_OPTS) clean: rm -rf $(PREPROCESSOR_RESULT) $(ERLANG_RESULT) |