From d2fa664a12b478b3fd21f7659f3674c8520bf43b Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Wed, 10 Sep 2014 18:01:31 -0700 Subject: [PATCH] makefile for simple testing This is hard to use within Travis-ci.com because that uses build variants. --- dev.makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 dev.makefile diff --git a/dev.makefile b/dev.makefile new file mode 100644 index 0000000..7a96af8 --- /dev/null +++ b/dev.makefile @@ -0,0 +1,14 @@ +all: build test-amalgamate + +build: + mkdir -p build/debug + cd build/debug; cmake -DCMAKE_BUILD_TYPE=debug -DJSONCPP_LIB_BUILD_SHARED=OFF -G "Unix Makefiles" ../.. + make -C build/debug + +# Currently, this depends on include/json/version.h generated +# by cmake. +test-amalgamate: build + python2.7 amalgamate.py + python3.4 amalgamate.py + +.PHONY: build