summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-08-31 17:46:41 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-08-31 17:46:41 +0200 |
commit | 12db456fddd558ae93be6300dd2d156f998760d4 (patch) | |
tree | f689b5b8ddb683dc80facf24973e36018d9b6f27 /src/main-menu/Makefile | |
parent | 89beca8b32b3fcb43abcb6167709caad1ffe94ee (diff) |
Starting to work on the main menu...
Diffstat (limited to 'src/main-menu/Makefile')
-rw-r--r-- | src/main-menu/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/main-menu/Makefile b/src/main-menu/Makefile new file mode 100644 index 0000000..3b58a08 --- /dev/null +++ b/src/main-menu/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 $@ |