-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile: Install and use local component binaries
- Loading branch information
Stephen Mathieson
committed
Nov 18, 2014
1 parent
fb333ea
commit f340701
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
|
||
build: index.js components | ||
@component build | ||
BIN := node_modules/.bin | ||
|
||
components: | ||
@component install | ||
build: node_modules build/build.js | ||
build/build.js: index.js components | ||
@mkdir -p $(dir $@) | ||
@$(BIN)/component-build --dev | ||
|
||
components: node_modules component.json | ||
@$(BIN)/component-install --dev | ||
|
||
test: build/build.js | ||
$(BIN)/component-test browser | ||
|
||
clean: | ||
rm -fr build components | ||
|
||
.PHONY: clean | ||
node_modules: package.json | ||
@npm install | ||
@touch $@ | ||
|
||
.PHONY: clean test |