From d6743b1d64931627905520081ff3218a2c4bac3e Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Wed, 7 Mar 2018 08:40:58 +0100 Subject: VPPAPIGEN: Run tool directly from source tree. This ensures that tool changes do not require re-bootstrap. Disabled generation of temporary files (gentab / .pyc) to avoid polluting the source tree. Change-Id: I4d6bc035fbb46550fa8f4e99f4091eef90e2d86c Signed-off-by: Ole Troan --- src/suffix-rules.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/suffix-rules.mk') 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 $@ -- cgit 1.2.3-korg