diff options
author | Ole Troan <ot@cisco.com> | 2016-12-01 21:49:03 +0100 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2016-12-02 09:11:11 +0000 |
commit | f14e3bf7b297f3b9eea87af412929bb8f277b315 (patch) | |
tree | cc9fc2313b79936b34bda0c01a354c0633834ba0 /build-data/suffix-rules.mk | |
parent | 7be864ad0d8e3b139a277fb4a0234480f0cc3daa (diff) |
API: Packaging of JSON files.
Change-Id: If041b6faf1a091d4758b514f0a8cd800ee0e6a89
Signed-off-by: Ole Troan <ot@cisco.com>
Signed-off-by: Ole Troan <otroan@ot-vpp.cisco.com>
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'build-data/suffix-rules.mk')
-rw-r--r-- | build-data/suffix-rules.mk | 6 |
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 $@ |