From d657e80429b4ea758316dc0a307afd2b480e45e4 Mon Sep 17 00:00:00 2001 From: Trevor Elliott Date: Mon, 3 Jun 2013 15:23:20 -0700 Subject: Add a Config.mk for build config --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1496ac9..2b57dfe 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,13 @@ path := . include mk/util.mk include mk/subdir.mk +ifeq "$(shell ls ./Config.mk 2>/dev/null)" "" +$(warning No Config.mk found, installing a default) +Config.mk: Config.mk.sample + $(call cmd,cp) + +endif +-include Config.mk # Build Directory Staging ###################################################### @@ -89,10 +96,11 @@ endif # JS Unit Tests ############################################################### -PHANTOM_EXE := $(shell which phantomjs 2>/dev/null) -ifneq "$PHANTOM_EXE" "" +ifneq "$(PHANTOM_EXE)" "" test-js: - cd $(topdir)/contexts/data && $(PHANTOM_EXE) lib/phantomjs_jasmine/phantomjs_jasminexml_runner.js tests/PhantomJSJasmineRunner.html tests/reports/ + cd $(topdir)/contexts/data && $(PHANTOM_EXE) \ + lib/phantomjs_jasmine/phantomjs_jasminexml_runner.js \ + tests/PhantomJSJasmineRunner.html tests/reports/ endif -- cgit v1.2.3