From: Jean Privat Date: Mon, 24 Aug 2015 14:17:40 +0000 (-0400) Subject: lib/json: make build nitcc if required X-Git-Tag: v0.7.8~70^2~1 X-Git-Url: http://nitlanguage.org lib/json: make build nitcc if required Signed-off-by: Jean Privat --- 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)