--- libsmbios-2.3.3/Makefile.am
+++ libsmbios-2.3.3/Makefile.am
@@ -89,13 +89,15 @@
 
 
 ########## DOCS ################
-all: doxygen
 if HAVE_DOXYGEN
+all: doxygen
 DOXYGEN_DEPS=out/libsmbios_c/html/index.html
 if BUILD_LIBSMBIOS_CXX
 DOXYGEN_DEPS+=out/libsmbios_c++/html/index.html
 endif
 doxygen: $(DOXYGEN_DEPS)
+else
+all:
 endif
 
 DOT=@DOT@
