From d618aa99551bb66320a88e4d944dcaef68438967 Mon Sep 17 00:00:00 2001
From: Philippe Canal <pcanal@fnal.gov>
Date: Thu, 28 Jun 2012 12:10:37 +0000
Subject: [PATCH] Protect html target against missing X11 component

git-svn-id: http://root.cern.ch/svn/root/trunk@44800 27541ba8-7e3a-0410-8455-c3a389f83636
---
 Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index 6751b355c67..5df93f5b286 100644
--- a/Makefile
+++ b/Makefile
@@ -1088,6 +1088,7 @@ changelog:
 releasenotes:
 	@$(MAKERELNOTES)
 
+ifeq ($(BUILDX11),yes)
 html: rootexecs postbin changelog releasenotes
 ifneq ($(USECONFIG),FALSE)
 	@if [ "x`which root.exe`" != "x$(DESTDIR)$(BINDIR)/root.exe" ] \
@@ -1099,6 +1100,10 @@ ifneq ($(USECONFIG),FALSE)
 endif
 	@$(MAKELOGHTML)
 	@$(MAKEHTML)
+else
+html:
+	@echo "Error: Generating the html doc requires to enable the X11 component when running configure." && exit 1
+endif
 
 # Use DESTDIR to set a sandbox prior to calling "make install", e.g.:
 #   ./configure --prefix=/usr/
-- 
GitLab