summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-06-06 15:54:18 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-06-06 15:54:18 +0200
commitee9c2ac044cc77b80f30420c8f0788cad4281084 (patch)
tree6ce9c45b6c0f0c556839b6f462f84eab06e26594 /src/db/Makefile
parent97f7511e61cebae3676a83aa9c0dc2efb15d8d8c (diff)
Figuring out how to organize the src folder(s)...
Diffstat (limited to 'src/db/Makefile')
-rw-r--r--src/db/Makefile71
1 files changed, 0 insertions, 71 deletions
diff --git a/src/db/Makefile b/src/db/Makefile
deleted file mode 100644
index 206a332..0000000
--- a/src/db/Makefile
+++ /dev/null
@@ -1,71 +0,0 @@
-################################################################################
-## CONFIG ######################################################################
-################################################################################
-MODULE_NAME ?= $ $(shell basename ${CURDIR})
-MODULE_PORT ?= 8002
-
-DIALYZER_PLT_FILE ?= tacticians-server.plt
-
-## Main Directories
-SRC_DIR ?= ${CURDIR}/src
-CONF_DIR ?= ${CURDIR}/conf
-
-#### Optional Dirs
-BIN_DIR ?= ${CURDIR}/ebin
-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
-
-################################################################################
-## MAKEFILE MAGIC ##############################################################
-################################################################################
-OPTIONAL_DIRS = $(BIN_DIR) $(INCLUDE_DIR)
-
-################################################################################
-## SANITY CHECKS ###############################################################
-################################################################################
-DIALYZER_PLT_FILE ?= tacticians-server.plt
-
-## Main Directories
-SRC_DIR ?= src
-CONF_DIR ?= conf
-
-################################################################################
-## INCLUDES ####################################################################
-################################################################################
-main_target: all
-
-include ${CURDIR}/mk/debug.mk
-include ${CURDIR}/mk/erlang.mk
-include ${CURDIR}/mk/preprocessor.mk
-
-################################################################################
-## TARGET RULES ################################################################
-################################################################################
-all: build
-
-debug: debug_run
-
-build: $(REQUIRED_HEADERS) $(PREPROCESSOR_RESULT) $(ERLANG_RESULT)
-
-run:
- $(ERL) $(ERL_OPTS)
-
-clean:
- rm -rf $(PREPROCESSOR_RESULT) $(ERLANG_RESULT)
-
-################################################################################
-## INTERNAL RULES ##############################################################
-################################################################################
-$(OPTIONAL_DIRS): %:
- mkdir -p $@