From f340701b1023dab45378a8dde13ebefb0f589166 Mon Sep 17 00:00:00 2001 From: Stephen Mathieson Date: Tue, 18 Nov 2014 11:20:34 -0500 Subject: [PATCH] Makefile: Install and use local component binaries --- Makefile | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 00bb7f9..851ab78 100644 --- a/Makefile +++ b/Makefile @@ -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