From f1c6b41c36d683d1dd983c0df220dfbff56ef54f Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Mon, 24 Aug 2015 10:17:40 -0400 Subject: [PATCH] lib/json: make build nitcc if required Signed-off-by: Jean Privat --- lib/json/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/json/Makefile b/lib/json/Makefile index 8d10e1e..8d0650f 100644 --- a/lib/json/Makefile +++ b/lib/json/Makefile @@ -1,2 +1,7 @@ -compile-parser: - ../../contrib/nitcc/src/nitcc ../../contrib/nitcc/examples/json.sablecc +NITCCDIR=../../contrib/nitcc/ + +compile-parser: $(NITCCDIR)src/nitcc + $(NITCCDIR)src/nitcc $(NITCCDIR)examples/json.sablecc + +$(NITCCDIR)src/nitcc: + make -C $(NITCCDIR) -- 1.7.9.5