aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/examples/sample-plugin/Makefile.am7
-rw-r--r--src/suffix-rules.mk12
2 files changed, 10 insertions, 9 deletions
diff --git a/src/examples/sample-plugin/Makefile.am b/src/examples/sample-plugin/Makefile.am
index 5c279c44b11..1825a8f111f 100644
--- a/src/examples/sample-plugin/Makefile.am
+++ b/src/examples/sample-plugin/Makefile.am
@@ -31,12 +31,13 @@ vpppluginsdir = ${libdir}/vpp_plugins
include sample.am
%.api.h: %.api
- mkdir -p `dirname $@` ; \
+ @echo " APIGEN " $@ ; \
+ mkdir -p `dirname $@` ; \
vppapigen --input $^ --output $@
%.api.json: %.api
- @echo " JSON APIGEN " $@ ; \
- mkdir -p `dirname $@` ; \
+ @echo " JSON APIGEN " $@ ; \
+ mkdir -p `dirname $@` ; \
vppapigen --input $^ JSON --output $@
apidir = $(prefix)/api/plugins
diff --git a/src/suffix-rules.mk b/src/suffix-rules.mk
index 8b1ab83b28b..1e701651822 100644
--- a/src/suffix-rules.mk
+++ b/src/suffix-rules.mk
@@ -14,13 +14,13 @@
# Shared suffix rules
# Please do not set "SUFFIXES = .api.h .api" here
-VPPAPIGEN = $(top_srcdir)/tools/vppapigen/vppapigen
+VPPAPIGEN = vppapigen
%.api.h: %.api
- @echo " APIGEN " $@ ; \
- mkdir -p `dirname $@` ; \
+ @echo " APIGEN " $@ ; \
+ mkdir -p `dirname $@` ; \
$(VPPAPIGEN) --includedir $(top_srcdir) --input $< --output $@
-%.api.json: %.api
- @echo " JSON API" $@ ; \
- mkdir -p `dirname $@` ; \
+%.api.json: %.api
+ @echo " JSON API" $@ ; \
+ mkdir -p `dirname $@` ; \
$(VPPAPIGEN) --includedir $(top_srcdir) --input $< JSON --output $@