nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5142ccf
)
lib/json: make build nitcc if required
author
Jean Privat
<jean@pryen.org>
Mon, 24 Aug 2015 14:17:40 +0000
(10:17 -0400)
committer
Jean Privat
<jean@pryen.org>
Mon, 24 Aug 2015 15:05:31 +0000
(11:05 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
lib/json/Makefile
patch
|
blob
|
history
diff --git
a/lib/json/Makefile
b/lib/json/Makefile
index
8d10e1e
..
8d0650f
100644
(file)
--- 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)