| summaryrefslogtreecommitdiff | 
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2018-04-10 13:01:12 +0200 | 
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2018-04-10 13:01:12 +0200 | 
| commit | 1001c3f6cfefd880c1721f2b80c1795197d05365 (patch) | |
| tree | 8696137b5684547b80129d308bc854a7e74fa0b0 /Makefile | |
| parent | d7032b408c5f66a3cb62c44cf0953abe48c39ef9 (diff) | |
Changing how the server services are organized...
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 | 
1 files changed, 19 insertions, 3 deletions
| @@ -1,4 +1,6 @@ -## Directories +################################################################################ +## CONFIG ###################################################################### +################################################################################  SRC_DIR ?= src  BIN_DIR ?= ebin  CONF_DIR ?= conf @@ -16,16 +18,26 @@ ERLC ?= erlc  ERLC_OPTS ?=  DIALYZER ?= dialyzer -################################################################################  REQUIRED_HEADERS = $(INCLUDE_DIR)/yaws_api.hrl +################################################################################ +## MAKEFILE MAGIC ############################################################## +################################################################################ +  SRC_FILES = $(wildcard $(SRC_DIR)/*.erl)  MODULES = $(patsubst %.erl,%,$(SRC_FILES))  SUB_DIRS = $(filter-out $(MODULES),$(sort $(dir $(wildcard $(SRC_DIR)/*/))))  BIN_FILES = $(patsubst $(SRC_DIR)/%.erl,$(BIN_DIR)/%.beam,$(SRC_FILES)) +################################################################################ +## SANITY CHECKS ############################################################### +################################################################################ + -export  ################################################################################ +## TARGET RULES ################################################################ +################################################################################ +export +  all:  	for subdir in $(SUB_DIRS) ; do \  		echo "Building dir $$subdir" ; \ @@ -50,6 +62,10 @@ run: all $(UNUSED_WWW_DIR)  clean:  	rm -rf $(BIN_DIR)/* +################################################################################ +## INTERNAL RULES ############################################################## +################################################################################ +  $(DIALYZER_PLT_FILE):  	$(DIALYZER) --build_plt --apps erts kernel stdlib jiffy --output_plt $@  	$(MAKE) build_debug | 


