X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=build-data%2Fsuffix-rules.mk;h=e3eeb9220bf4862d980b2ecf0a28a651dfaaddc1;hb=c4d1cf76072b54f630b0263cd86e01df82249568;hp=95069297fa52d5c6c5793c7a69fb197296f92e93;hpb=aff7077d2031545a15efd12e7f65eac723799491;p=vpp.git 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 $@