Commit 7478eb2a authored by Tristan Cavelier's avatar Tristan Cavelier

Makefile improved + jio.outro split to 2 files (jslint ok)

parent c4165e2a
...@@ -8,16 +8,19 @@ FILE_DIR = src/jio ...@@ -8,16 +8,19 @@ FILE_DIR = src/jio
STORAGE_DIR = src/jio.storage STORAGE_DIR = src/jio.storage
# The order is important! # The order is important!
LINT_FILES = exceptions jio.intro storages/* commands/* jobs/status/* jobs/job announcements/announcement activityUpdater announcements/announcer jobs/jobIdHandler jobs/jobManager jobs/jobRules jio.outro jioNamespace CONCAT_NAMES = intro exceptions jio.intro storages/* commands/* jobs/status/* jobs/job announcements/announcement activityUpdater announcements/announcer jobs/jobIdHandler jobs/jobManager jobs/jobRules jio.core jio.outro jioNamespace outro
FILES = intro $(LINT_FILES) outro STORAGE_NAMES = *
STORAGE_FILES = * LINT_NAMES = exceptions storages/* commands/* jobs/status/* jobs/* announcements/* activityUpdater jio.core jioNamespace
CONCAT_FILES = $(CONCAT_NAMES:%=$(FILE_DIR)/%.js)
LINT_FILES = $(LINT_NAMES:%=$(FILE_DIR)/%.js) $(STORAGE_NAMES:%=$(STORAGE_DIR)/%.js)
auto: build lint auto: build lint
build: concat uglify build: concat uglify
# concat source FILES to build jio.js # concat source FILES to build jio.js
concat: concat:
cat $(FILES:%=$(FILE_DIR)/%.js) > "$(OUT)" cat $(CONCAT_FILES) > "$(OUT)"
# uglify jio.js to build jio.min.js # uglify jio.js to build jio.min.js
uglify: uglify:
...@@ -30,7 +33,7 @@ uglify: ...@@ -30,7 +33,7 @@ uglify:
# /*jslint indent: 2, maxlen: 80 */ # /*jslint indent: 2, maxlen: 80 */
# /*global hex_sha256: true, jQuery: true */ # /*global hex_sha256: true, jQuery: true */
lint: lint:
$(LINT_CMD) $(LINT_FILES:%=$(FILE_DIR)/%.js) $(LINT_CMD) $(LINT_FILES)
.phony: clean .phony: clean
clean: clean:
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment