In case of documents without image, an empty rm command can be seen if V=1.
Remove it to avoid disturbing debugging.
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Siobhan Butler <siobhan.a.butler@intel.com>
$(Q)$(RTE_SPHINX_BUILD) -b latex $(RTE_SPHINX_VERBOSE) \
-c $(RTE_SDK)/doc/guides $(RTE_SDK)/doc/guides/$* \
$(RTE_OUTPUT)/doc/pdf/guides/$*
- $(Q)rm -f $^
+ $(if $^,$(Q)rm -f $^)
@echo 'pdflatex processing $@...'
$(Q)$(MAKE) all-pdf -sC $(RTE_OUTPUT)/doc/pdf/guides/$* \
LATEXOPTS=$(RTE_PDFLATEX_VERBOSE)