diff options
Diffstat (limited to 'src/suffix-rules.mk')
-rw-r--r-- | src/suffix-rules.mk | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/suffix-rules.mk b/src/suffix-rules.mk index 9115c55b567..495d828f348 100644 --- a/src/suffix-rules.mk +++ b/src/suffix-rules.mk @@ -15,13 +15,11 @@ # Please do not set "SUFFIXES = .api.h .api" here %.api.h: %.api @VPPAPIGEN@ - @echo " APIGEN " $@ ; \ - mkdir -p `dirname $@` ; \ - $(CC) $(CPPFLAGS) -E -P -C -x c $< \ - | @VPPAPIGEN@ --input - --output $@ --show-name $@ > /dev/null + @echo " APIGEN " $@ ; \ + mkdir -p `dirname $@` ; \ + @VPPAPIGEN@ --includedir $(top_srcdir) --input $< --output $@ -%.api.json: %.api @VPPAPIGEN@ - @echo " JSON API" $@ ; \ - mkdir -p `dirname $@` ; \ - $(CC) $(CPPFLAGS) -E -P -C -x c $< \ - | @VPPAPIGEN@ --input - --json $@ > /dev/null +%.api.json: %.api + @echo " JSON API" $@ ; \ + mkdir -p `dirname $@` ; \ + @VPPAPIGEN@ --includedir $(top_srcdir) --input $< JSON --output $@ |