At the least, $(BUILT_SOURCES) should be added to CLEANFILES. Also
beneficial is $(api_DATA), and in the case of Java, *.files and *.h.
Also there is a vpp/app/version.h, and some grammar and lex files in
vppapigen.
Change-Id: Ic6d3f2d40ce65e1d9a8b88217fa1f36de393ebb4
Signed-off-by: Burt Silverman <burtms@gmail.com>
dist_bin_SCRIPTS =
lib_LTLIBRARIES =
BUILT_SOURCES =
+CLEANFILES =
install-data-local:
@echo "Building vppctl command list..."
@DIR_SEARCH="$(srcdir)" ; \
endif # if ENABLE_VLIB
endif # if ENABLE_SVM
+
+CLEANFILES += $(BUILT_SOURCES) $(api_DATA)
install-data-hook:
@(cd $(vpppluginsdir) && $(RM) $(vppplugins_LTLIBRARIES))
@(cd $(vppapitestpluginsdir) && $(RM) $(vppapitestplugins_LTLIBRARIES))
+
+CLEANFILES = $(BUILT_SOURCES)
BUILT_SOURCES += \
$(patsubst %.api,%.api.h,$(API_FILES))
+CLEANFILES = $(BUILT_SOURCES) $(api_DATA)
#
# Cleanup
#
-CLEANFILES = jvpp-registry.ok $(JAR_FILES) $(BUILT_SOURCES)
+CLEANFILES = jvpp-registry.ok $(JAR_FILES) $(BUILT_SOURCES) *.files */*.h
clean-local:
rm -rf $(CLEANDIRS)
libvppinfra.la \
-lpthread -lm -lrt
+CLEANFILES += vpp/app/version.h
+
# vi:syntax=automake
vppapigen_LDADD = libvppinfra.la
vppapigen_LDFLAGS = -static
+CLEANFILES += tools/vppapigen/gram.c tools/vppapigen/gram.h
+CLEANFILES += tools/vppapigen/lex_e.c
# vi:syntax=automake