X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fsuffix-rules.mk;h=8b1ab83b28b05b7d2d6d671d7e204b863a058f96;hb=0d427d8d8a48af404dfc6535ae72d334b790f809;hp=495d828f34824875a63a80767913b2f5602d0c8c;hpb=9d42087149a6870965896be74dc6260f72d2cac9;p=vpp.git diff --git a/src/suffix-rules.mk b/src/suffix-rules.mk index 495d828f348..8b1ab83b28b 100644 --- a/src/suffix-rules.mk +++ b/src/suffix-rules.mk @@ -14,12 +14,13 @@ # Shared suffix rules # Please do not set "SUFFIXES = .api.h .api" here -%.api.h: %.api @VPPAPIGEN@ +VPPAPIGEN = $(top_srcdir)/tools/vppapigen/vppapigen +%.api.h: %.api @echo " APIGEN " $@ ; \ mkdir -p `dirname $@` ; \ - @VPPAPIGEN@ --includedir $(top_srcdir) --input $< --output $@ + $(VPPAPIGEN) --includedir $(top_srcdir) --input $< --output $@ %.api.json: %.api @echo " JSON API" $@ ; \ mkdir -p `dirname $@` ; \ - @VPPAPIGEN@ --includedir $(top_srcdir) --input $< JSON --output $@ + $(VPPAPIGEN) --includedir $(top_srcdir) --input $< JSON --output $@