IPIP: Also publish the ipip.api.h file.
[vpp.git] / src / suffix-rules.mk
index 495d828..1e70165 100644 (file)
 # Shared suffix rules
 # Please do not set "SUFFIXES = .api.h .api" here
 
-%.api.h: %.api @VPPAPIGEN@
-       @echo "  APIGEN  " $@ ;                                              \
-       mkdir -p `dirname $@` ;                                              \
-       @VPPAPIGEN@ --includedir $(top_srcdir) --input $< --output $@
+VPPAPIGEN = vppapigen
+%.api.h: %.api
+       @echo "  APIGEN  " $@ ;                                         \
+       mkdir -p `dirname $@` ;                                         \
+       $(VPPAPIGEN) --includedir $(top_srcdir) --input $< --output $@
 
-%.api.json: %.api
-       @echo "  JSON API" $@ ;                                              \
-       mkdir -p `dirname $@` ;                                              \
-       @VPPAPIGEN@ --includedir $(top_srcdir) --input $< JSON --output $@
+%.api.json: %.api                                                           
+       @echo "  JSON API" $@ ;                                             \
+       mkdir -p `dirname $@` ;                                             \
+       $(VPPAPIGEN) --includedir $(top_srcdir) --input $< JSON --output $@