bs: fix silent rule invoking doxygen
The CodeQL autobuild has started failing the CodeQL CI workflow a few days ago, due to their doxygen not supporting the -q command line argument. This replaces the use of -q by redirecting stdout and stderr in the silent rules case. Fixes: https://github.com/gphoto/libgphoto2/issues/1046
This commit is contained in:
@@ -23,10 +23,19 @@ LOCAL_CLEAN =
|
||||
|
||||
|
||||
# FIXME: Depend on source files.
|
||||
DOXYGEN_STAMPS += $(HTML_APIDOC_DIR).stamp
|
||||
$(HTML_APIDOC_DIR).stamp: Doxyfile
|
||||
$(AM_V_GEN)doxygen Doxyfile
|
||||
@: > $@
|
||||
DOXYGEN_STAMPS += $(HTML_APIDOC_DIR).log
|
||||
$(HTML_APIDOC_DIR).log: Doxyfile
|
||||
@if $(AM_V_P); then \
|
||||
echo "doxygen $<"; \
|
||||
doxygen $<; \
|
||||
else \
|
||||
printf " %-8s %s\n" DOXYGEN "$<"; \
|
||||
if ! doxygen $< > $@ 2>&1; then \
|
||||
cat $@; \
|
||||
rm -f $@; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
fi
|
||||
|
||||
$(HTML_APIDOC_DIR).tar.gz: $(HTML_APIDOC_DIR).stamp
|
||||
(cd $(DOXYGEN_OUTPUT_DIR) && $(AMTAR) chof - $(HTML_APIDOC_DIR) | GZIP=--best gzip -c) > $@
|
||||
|
||||
Reference in New Issue
Block a user