| summaryrefslogtreecommitdiff | 
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2017-10-19 13:30:40 +0200 | 
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2017-10-19 13:30:40 +0200 | 
| commit | e008855086d124f0de14eacc858ecb57d23e371c (patch) | |
| tree | e3fe94dcf2966d17ac970b4b9cbbf6998c1f34a6 /src/battlemap/Makefile | |
| parent | ab299e08cee6ee9b2b122ce87b9bdab3b0dd637c (diff) | |
Starting a more modular approach for the website.
Diffstat (limited to 'src/battlemap/Makefile')
| -rw-r--r-- | src/battlemap/Makefile | 16 | 
1 files changed, 16 insertions, 0 deletions
| diff --git a/src/battlemap/Makefile b/src/battlemap/Makefile new file mode 100644 index 0000000..02cae24 --- /dev/null +++ b/src/battlemap/Makefile @@ -0,0 +1,16 @@ +ELM_CC = elm-make --warn + +SRC_DIR = src +WWW_DIR = www +WWW_SCRIPT_DIR = $(WWW_DIR)/script + +MAIN_MODULE = $(SRC_DIR)/Main.elm +SUB_MODULES = $(shell find $(SRC_DIR) -type f | grep "elm$$") + +$(WWW_SCRIPT_DIR)/main.js: $(MAIN_MODULE) $(SUB_MODULES) +	$(ELM_CC) $(MAIN_MODULE) --output $@ + +build: $(WWW_SCRIPT_DIR)/main.js + +clean: +	rm -f $(WWW_SCRIPT_DIR)/main.js | 


