nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/json: make build nitcc if required
[nit.git]
/
lib
/
json
/
Makefile
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)