| summaryrefslogtreecommitdiff |
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2018-09-27 16:25:14 +0200 |
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2018-09-27 16:25:14 +0200 |
| commit | 55f01ce3978f12eafe7e726ee52133169c84b2bc (patch) | |
| tree | 0f3b440690ae0254dc23c07eadb0d8a98cbd03ca /src/popup/Makefile | |
| parent | 287049d6d1f06269fa48e2dba460e8dde9867bda (diff) | |
...
Diffstat (limited to 'src/popup/Makefile')
| -rw-r--r-- | src/popup/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/popup/Makefile b/src/popup/Makefile index 3b58a08..7fdd89b 100644 --- a/src/popup/Makefile +++ b/src/popup/Makefile @@ -2,8 +2,7 @@ ## CONFIG ###################################################################### ################################################################################ SRC_DIR ?= src -WWW_DIR ?= www -WWW_SCRIPT_DIR ?= $(WWW_DIR)/script +TARGET_FILE ?= $(WWW_DIR)/script/main_popup.js ELM_CC ?= elm-make --warn @@ -21,10 +20,10 @@ SUB_MODULES = $(shell find $(SRC_DIR) -type f | grep "elm$$") ################################################################################ ## TARGET RULES ################################################################ ################################################################################ -build: $(WWW_SCRIPT_DIR)/main.js +build: $(TARGET_FILE) clean: - rm -f $(WWW_SCRIPT_DIR)/main.js + rm -f $(TARGET_FILE) reset: rm -rf elm-stuff @@ -32,5 +31,5 @@ reset: ################################################################################ ## INTERNAL RULES ############################################################## ################################################################################ -$(WWW_SCRIPT_DIR)/main.js: $(MAIN_MODULE) $(SUB_MODULES) +$(TARGET_FILE): $(MAIN_MODULE) $(SUB_MODULES) $(ELM_CC) $(MAIN_MODULE) --output $@ |


