| summaryrefslogtreecommitdiff | 
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2018-07-10 16:44:13 +0200 | 
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2018-07-10 16:44:13 +0200 | 
| commit | f63602557a2f7320a7e02a3bf7dd9b339efaf4d1 (patch) | |
| tree | 360f47978854409073718b23a5189b62acea0e9e /src/map-editor/Makefile | |
| parent | cc7e5d48a82eac5d6643702e84a4ed9ac2bb15d3 (diff) | |
Starting work on the map editor...
Diffstat (limited to 'src/map-editor/Makefile')
| -rw-r--r-- | src/map-editor/Makefile | 36 | 
1 files changed, 36 insertions, 0 deletions
| diff --git a/src/map-editor/Makefile b/src/map-editor/Makefile new file mode 100644 index 0000000..3b58a08 --- /dev/null +++ b/src/map-editor/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 $@ | 


