summaryrefslogtreecommitdiffstats
path: root/build-data/suffix-rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build-data/suffix-rules.mk')
-rw-r--r--build-data/suffix-rules.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/build-data/suffix-rules.mk b/build-data/suffix-rules.mk
index 95069297fa5..e3eeb9220bf 100644
--- a/build-data/suffix-rules.mk
+++ b/build-data/suffix-rules.mk
@@ -20,4 +20,8 @@
$(CC) $(CPPFLAGS) -E -P -C -x c $^ \
| vppapigen --input - --output $@ --show-name $@
-
+%.api.json: %.api
+ @echo " JSON APIGEN " $@ ; \
+ mkdir -p `dirname $@` ; \
+ $(CC) $(CPPFLAGS) -E -P -C -x c $^ \
+ | vppapigen --input - --json $@