summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-08-24 17:36:33 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-08-24 17:36:33 +0200 |
commit | b3fd9613c298e1af44f025d9d95021eec8c72a59 (patch) | |
tree | 4e00b8d3c2f3a56747a3520a3ec260c5e3302861 /src/character/Makefile | |
parent | 3713d6089adccd96385b0d079bb72587d2122848 (diff) |
Starting to work on the character editor.
Diffstat (limited to 'src/character/Makefile')
-rw-r--r-- | src/character/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/character/Makefile b/src/character/Makefile new file mode 100644 index 0000000..3b58a08 --- /dev/null +++ b/src/character/Makefile @@ -0,0 +1,36 @@ +################################################################################ +## CONFIG ###################################################################### +################################################################################ +SRC_DIR ?= src +WWW_DIR ?= www +WWW_SCRIPT_DIR ?= $(WWW_DIR)/script + +ELM_CC ?= elm-make --warn + +MAIN_MODULE ?= $(SRC_DIR)/Main.elm + +################################################################################ +## MAKEFILE MAGIC ############################################################## +################################################################################ +SUB_MODULES = $(shell find $(SRC_DIR) -type f | grep "elm$$") + +################################################################################ +## SANITY CHECKS ############################################################### +################################################################################ + +################################################################################ +## TARGET RULES ################################################################ +################################################################################ +build: $(WWW_SCRIPT_DIR)/main.js + +clean: + rm -f $(WWW_SCRIPT_DIR)/main.js + +reset: + rm -rf elm-stuff + +################################################################################ +## INTERNAL RULES ############################################################## +################################################################################ +$(WWW_SCRIPT_DIR)/main.js: $(MAIN_MODULE) $(SUB_MODULES) + $(ELM_CC) $(MAIN_MODULE) --output $@ |