Skip to content

Commit

Permalink
Makefile: Install and use local component binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Mathieson committed Nov 18, 2014
1 parent fb333ea commit f340701
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions Makefile
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

0 comments on commit f340701

Please sign in to comment.