aboutsummaryrefslogtreecommitdiffstats
path: root/src/suffix-rules.mk
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-12-28 17:51:56 +0100
committerDave Barach <openvpp@barachs.net>2017-01-03 15:14:49 +0000
commit0be5ec304d2d4cfc6faecbb519ef165d9ab5d34e (patch)
tree385572e3c10c18a8a4fc347216946c52805a978f /src/suffix-rules.mk
parent78c3ba4fcfb06b8656a24817e183492c6a4fb2b8 (diff)
Do not require external vppapigen when not cross-compiling
Change-Id: I80b8348ed4efd53d292c37a1ff69c13ee4741986 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/suffix-rules.mk')
-rw-r--r--src/suffix-rules.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/suffix-rules.mk b/src/suffix-rules.mk
index f97b2276..9115c55b 100644
--- a/src/suffix-rules.mk
+++ b/src/suffix-rules.mk
@@ -14,14 +14,14 @@
# Shared suffix rules
# Please do not set "SUFFIXES = .api.h .api" here
-%.api.h: %.api
+%.api.h: %.api @VPPAPIGEN@
@echo " APIGEN " $@ ; \
mkdir -p `dirname $@` ; \
- $(CC) $(CPPFLAGS) -E -P -C -x c $^ \
- | vppapigen --input - --output $@ --show-name $@ > /dev/null
+ $(CC) $(CPPFLAGS) -E -P -C -x c $< \
+ | @VPPAPIGEN@ --input - --output $@ --show-name $@ > /dev/null
-%.api.json: %.api
+%.api.json: %.api @VPPAPIGEN@
@echo " JSON API" $@ ; \
mkdir -p `dirname $@` ; \
- $(CC) $(CPPFLAGS) -E -P -C -x c $^ \
- | vppapigen --input - --json $@ > /dev/null
+ $(CC) $(CPPFLAGS) -E -P -C -x c $< \
+ | @VPPAPIGEN@ --input - --json $@ > /dev/null