From 663f9bd5f5592fb6670fa20cabdc65dea631739d Mon Sep 17 00:00:00 2001
From: Dean Camera <dean@fourwalledcubicle.com>
Date: Fri, 9 Mar 2012 21:28:44 +0000
Subject: [PATCH] Update Doxygen documentation build scripts to fail if any
 warnings are generated.

---
 Bootloaders/CDC/makefile                                   | 4 +++-
 Bootloaders/DFU/makefile                                   | 4 +++-
 Bootloaders/HID/makefile                                   | 4 +++-
 BuildTests/ModuleTest/makefile.avr8                        | 5 ++++-
 BuildTests/ModuleTest/makefile.uc3                         | 4 +++-
 BuildTests/ModuleTest/makefile.xmega                       | 4 +++-
 BuildTests/SingleUSBModeTest/makefile.avr8                 | 4 +++-
 BuildTests/SingleUSBModeTest/makefile.uc3                  | 4 +++-
 BuildTests/SingleUSBModeTest/makefile.xmega                | 4 +++-
 BuildTests/StaticAnalysisTest/makefile                     | 3 ++-
 Demos/Device/ClassDriver/AudioInput/makefile               | 4 +++-
 Demos/Device/ClassDriver/AudioOutput/makefile              | 4 +++-
 Demos/Device/ClassDriver/DualVirtualSerial/makefile        | 4 +++-
 Demos/Device/ClassDriver/GenericHID/makefile               | 4 +++-
 Demos/Device/ClassDriver/Joystick/makefile                 | 4 +++-
 Demos/Device/ClassDriver/Keyboard/makefile                 | 4 +++-
 Demos/Device/ClassDriver/KeyboardMouse/makefile            | 4 +++-
 Demos/Device/ClassDriver/KeyboardMouseMultiReport/makefile | 4 +++-
 Demos/Device/ClassDriver/MIDI/makefile                     | 4 +++-
 Demos/Device/ClassDriver/MassStorage/makefile              | 4 +++-
 Demos/Device/ClassDriver/MassStorageKeyboard/makefile      | 4 +++-
 Demos/Device/ClassDriver/Mouse/makefile                    | 4 +++-
 Demos/Device/ClassDriver/RNDISEthernet/makefile            | 4 +++-
 Demos/Device/ClassDriver/VirtualSerial/makefile            | 4 +++-
 Demos/Device/ClassDriver/VirtualSerialMassStorage/makefile | 4 +++-
 Demos/Device/ClassDriver/VirtualSerialMouse/makefile       | 4 +++-
 Demos/Device/Incomplete/Sideshow/makefile                  | 4 +++-
 Demos/Device/Incomplete/TestAndMeasurement/makefile        | 4 +++-
 Demos/Device/LowLevel/AudioInput/makefile                  | 4 +++-
 Demos/Device/LowLevel/AudioOutput/makefile                 | 4 +++-
 Demos/Device/LowLevel/DualVirtualSerial/makefile           | 4 +++-
 Demos/Device/LowLevel/GenericHID/makefile                  | 4 +++-
 Demos/Device/LowLevel/Joystick/makefile                    | 4 +++-
 Demos/Device/LowLevel/Keyboard/makefile                    | 4 +++-
 Demos/Device/LowLevel/KeyboardMouse/makefile               | 4 +++-
 Demos/Device/LowLevel/MIDI/makefile                        | 4 +++-
 Demos/Device/LowLevel/MassStorage/makefile                 | 4 +++-
 Demos/Device/LowLevel/Mouse/makefile                       | 4 +++-
 Demos/Device/LowLevel/RNDISEthernet/makefile               | 4 +++-
 Demos/Device/LowLevel/VirtualSerial/makefile               | 4 +++-
 Demos/DualRole/ClassDriver/MouseHostDevice/makefile        | 4 +++-
 Demos/Host/ClassDriver/AndroidAccessoryHost/makefile       | 4 +++-
 Demos/Host/ClassDriver/AudioInputHost/makefile             | 4 +++-
 Demos/Host/ClassDriver/AudioOutputHost/makefile            | 4 +++-
 Demos/Host/ClassDriver/JoystickHostWithParser/makefile     | 4 +++-
 Demos/Host/ClassDriver/KeyboardHost/makefile               | 4 +++-
 Demos/Host/ClassDriver/KeyboardHostWithParser/makefile     | 4 +++-
 Demos/Host/ClassDriver/MIDIHost/makefile                   | 4 +++-
 Demos/Host/ClassDriver/MassStorageHost/makefile            | 4 +++-
 Demos/Host/ClassDriver/MouseHost/makefile                  | 4 +++-
 Demos/Host/ClassDriver/MouseHostWithParser/makefile        | 4 +++-
 Demos/Host/ClassDriver/PrinterHost/makefile                | 4 +++-
 Demos/Host/ClassDriver/RNDISEthernetHost/makefile          | 4 +++-
 Demos/Host/ClassDriver/StillImageHost/makefile             | 4 +++-
 Demos/Host/ClassDriver/VirtualSerialHost/makefile          | 4 +++-
 Demos/Host/Incomplete/BluetoothHost/makefile               | 4 +++-
 Demos/Host/LowLevel/AndroidAccessoryHost/makefile          | 4 +++-
 Demos/Host/LowLevel/AudioInputHost/makefile                | 4 +++-
 Demos/Host/LowLevel/AudioOutputHost/makefile               | 4 +++-
 Demos/Host/LowLevel/GenericHIDHost/makefile                | 4 +++-
 Demos/Host/LowLevel/JoystickHostWithParser/makefile        | 4 +++-
 Demos/Host/LowLevel/KeyboardHost/makefile                  | 4 +++-
 Demos/Host/LowLevel/KeyboardHostWithParser/makefile        | 4 +++-
 Demos/Host/LowLevel/MIDIHost/makefile                      | 4 +++-
 Demos/Host/LowLevel/MassStorageHost/makefile               | 4 +++-
 Demos/Host/LowLevel/MouseHost/makefile                     | 4 +++-
 Demos/Host/LowLevel/MouseHostWithParser/makefile           | 4 +++-
 Demos/Host/LowLevel/PrinterHost/makefile                   | 4 +++-
 Demos/Host/LowLevel/RNDISEthernetHost/makefile             | 4 +++-
 Demos/Host/LowLevel/StillImageHost/makefile                | 4 +++-
 Demos/Host/LowLevel/VirtualSerialHost/makefile             | 4 +++-
 LUFA/CodeTemplates/makefile_template.avr8                  | 4 +++-
 LUFA/CodeTemplates/makefile_template.uc3                   | 4 +++-
 LUFA/CodeTemplates/makefile_template.xmega                 | 4 +++-
 LUFA/makefile                                              | 6 +++++-
 Projects/AVRISP-MKII/makefile                              | 4 +++-
 Projects/Benito/makefile                                   | 4 +++-
 Projects/HIDReportViewer/makefile                          | 4 +++-
 Projects/Incomplete/StandaloneProgrammer/makefile          | 4 +++-
 Projects/LEDNotifier/makefile                              | 4 +++-
 Projects/MIDIToneGenerator/makefile                        | 4 +++-
 Projects/Magstripe/makefile                                | 4 +++-
 Projects/MediaController/makefile                          | 4 +++-
 Projects/MissileLauncher/makefile                          | 4 +++-
 Projects/RelayBoard/makefile                               | 4 +++-
 Projects/TempDataLogger/makefile                           | 4 +++-
 Projects/USBtoSerial/makefile                              | 4 +++-
 Projects/Webserver/makefile                                | 4 +++-
 Projects/XPLAINBridge/makefile                             | 4 +++-
 89 files changed, 269 insertions(+), 89 deletions(-)

diff --git a/Bootloaders/CDC/makefile b/Bootloaders/CDC/makefile
index 850d9dfc8..1ebb6f8cf 100644
--- a/Bootloaders/CDC/makefile
+++ b/Bootloaders/CDC/makefile
@@ -694,7 +694,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Bootloaders/DFU/makefile b/Bootloaders/DFU/makefile
index 14cf3a46f..078597e07 100644
--- a/Bootloaders/DFU/makefile
+++ b/Bootloaders/DFU/makefile
@@ -689,7 +689,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Bootloaders/HID/makefile b/Bootloaders/HID/makefile
index 853bcade0..5bbb8708c 100644
--- a/Bootloaders/HID/makefile
+++ b/Bootloaders/HID/makefile
@@ -686,7 +686,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/BuildTests/ModuleTest/makefile.avr8 b/BuildTests/ModuleTest/makefile.avr8
index f41470f7a..b94ac50e9 100644
--- a/BuildTests/ModuleTest/makefile.avr8
+++ b/BuildTests/ModuleTest/makefile.avr8
@@ -707,9 +707,12 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
+
 clean_doxygen:
 	rm -rf Documentation
 
diff --git a/BuildTests/ModuleTest/makefile.uc3 b/BuildTests/ModuleTest/makefile.uc3
index ba3ec10ba..3fa866c91 100644
--- a/BuildTests/ModuleTest/makefile.uc3
+++ b/BuildTests/ModuleTest/makefile.uc3
@@ -481,7 +481,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/BuildTests/ModuleTest/makefile.xmega b/BuildTests/ModuleTest/makefile.xmega
index 054c6c852..a48cb1bef 100644
--- a/BuildTests/ModuleTest/makefile.xmega
+++ b/BuildTests/ModuleTest/makefile.xmega
@@ -701,7 +701,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/BuildTests/SingleUSBModeTest/makefile.avr8 b/BuildTests/SingleUSBModeTest/makefile.avr8
index c0c7dbaf9..a7b69b58b 100644
--- a/BuildTests/SingleUSBModeTest/makefile.avr8
+++ b/BuildTests/SingleUSBModeTest/makefile.avr8
@@ -691,7 +691,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/BuildTests/SingleUSBModeTest/makefile.uc3 b/BuildTests/SingleUSBModeTest/makefile.uc3
index 33f2ffd2e..4ffaf2872 100644
--- a/BuildTests/SingleUSBModeTest/makefile.uc3
+++ b/BuildTests/SingleUSBModeTest/makefile.uc3
@@ -454,7 +454,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/BuildTests/SingleUSBModeTest/makefile.xmega b/BuildTests/SingleUSBModeTest/makefile.xmega
index b56efbfa1..f594d95b8 100644
--- a/BuildTests/SingleUSBModeTest/makefile.xmega
+++ b/BuildTests/SingleUSBModeTest/makefile.xmega
@@ -673,7 +673,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/BuildTests/StaticAnalysisTest/makefile b/BuildTests/StaticAnalysisTest/makefile
index 744120d87..474b25979 100644
--- a/BuildTests/StaticAnalysisTest/makefile
+++ b/BuildTests/StaticAnalysisTest/makefile
@@ -42,4 +42,5 @@ staticcheck:
 	cppcheck --quiet --inline-suppr --check-config --template=$(MESSAGE_TEMPLATE) $(INCLUDE_PATHS:%=-I%) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
 	cppcheck --quiet --inline-suppr --error-exitcode=1 --std=c99 --force --enable=all --inconclusive $(SUPPRESS_WARNINGS:%=--suppress=%) --template=$(MESSAGE_TEMPLATE) $(INCLUDE_PATHS:%=-I%) $(EXCLUDE_LIST:%=-i%) $(LUFA_ROOT_PATH)
 
-%:
\ No newline at end of file
+%:
+	
\ No newline at end of file
diff --git a/Demos/Device/ClassDriver/AudioInput/makefile b/Demos/Device/ClassDriver/AudioInput/makefile
index 1763d552f..439630c6b 100644
--- a/Demos/Device/ClassDriver/AudioInput/makefile
+++ b/Demos/Device/ClassDriver/AudioInput/makefile
@@ -698,7 +698,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/AudioOutput/makefile b/Demos/Device/ClassDriver/AudioOutput/makefile
index e00e3e23f..62c0aad4a 100644
--- a/Demos/Device/ClassDriver/AudioOutput/makefile
+++ b/Demos/Device/ClassDriver/AudioOutput/makefile
@@ -699,7 +699,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/DualVirtualSerial/makefile b/Demos/Device/ClassDriver/DualVirtualSerial/makefile
index 922437c23..25828e40d 100644
--- a/Demos/Device/ClassDriver/DualVirtualSerial/makefile
+++ b/Demos/Device/ClassDriver/DualVirtualSerial/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/GenericHID/makefile b/Demos/Device/ClassDriver/GenericHID/makefile
index 05f2c9a3b..e60ce4c15 100644
--- a/Demos/Device/ClassDriver/GenericHID/makefile
+++ b/Demos/Device/ClassDriver/GenericHID/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/Joystick/makefile b/Demos/Device/ClassDriver/Joystick/makefile
index 559ceb05c..88bad8e55 100644
--- a/Demos/Device/ClassDriver/Joystick/makefile
+++ b/Demos/Device/ClassDriver/Joystick/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/Keyboard/makefile b/Demos/Device/ClassDriver/Keyboard/makefile
index 064c9c917..1f44e38fd 100644
--- a/Demos/Device/ClassDriver/Keyboard/makefile
+++ b/Demos/Device/ClassDriver/Keyboard/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/KeyboardMouse/makefile b/Demos/Device/ClassDriver/KeyboardMouse/makefile
index 430a2b02a..cfb60e784 100644
--- a/Demos/Device/ClassDriver/KeyboardMouse/makefile
+++ b/Demos/Device/ClassDriver/KeyboardMouse/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/KeyboardMouseMultiReport/makefile b/Demos/Device/ClassDriver/KeyboardMouseMultiReport/makefile
index 48613c993..52566b7ec 100644
--- a/Demos/Device/ClassDriver/KeyboardMouseMultiReport/makefile
+++ b/Demos/Device/ClassDriver/KeyboardMouseMultiReport/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/MIDI/makefile b/Demos/Device/ClassDriver/MIDI/makefile
index 910fea1bc..b5790490b 100644
--- a/Demos/Device/ClassDriver/MIDI/makefile
+++ b/Demos/Device/ClassDriver/MIDI/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/MassStorage/makefile b/Demos/Device/ClassDriver/MassStorage/makefile
index bad1cfa64..e24d1a2ee 100644
--- a/Demos/Device/ClassDriver/MassStorage/makefile
+++ b/Demos/Device/ClassDriver/MassStorage/makefile
@@ -698,7 +698,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/MassStorageKeyboard/makefile b/Demos/Device/ClassDriver/MassStorageKeyboard/makefile
index 40cab5e50..87d40a6a8 100644
--- a/Demos/Device/ClassDriver/MassStorageKeyboard/makefile
+++ b/Demos/Device/ClassDriver/MassStorageKeyboard/makefile
@@ -698,7 +698,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/Mouse/makefile b/Demos/Device/ClassDriver/Mouse/makefile
index a6c468eb4..63d8f4646 100644
--- a/Demos/Device/ClassDriver/Mouse/makefile
+++ b/Demos/Device/ClassDriver/Mouse/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/RNDISEthernet/makefile b/Demos/Device/ClassDriver/RNDISEthernet/makefile
index 6ee3a2738..d50dc3dbc 100644
--- a/Demos/Device/ClassDriver/RNDISEthernet/makefile
+++ b/Demos/Device/ClassDriver/RNDISEthernet/makefile
@@ -713,7 +713,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/VirtualSerial/makefile b/Demos/Device/ClassDriver/VirtualSerial/makefile
index 3821c0bdf..c6127869b 100644
--- a/Demos/Device/ClassDriver/VirtualSerial/makefile
+++ b/Demos/Device/ClassDriver/VirtualSerial/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/VirtualSerialMassStorage/makefile b/Demos/Device/ClassDriver/VirtualSerialMassStorage/makefile
index e4a7187c1..1b211680a 100644
--- a/Demos/Device/ClassDriver/VirtualSerialMassStorage/makefile
+++ b/Demos/Device/ClassDriver/VirtualSerialMassStorage/makefile
@@ -697,7 +697,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/ClassDriver/VirtualSerialMouse/makefile b/Demos/Device/ClassDriver/VirtualSerialMouse/makefile
index d85f9b831..b918197dd 100644
--- a/Demos/Device/ClassDriver/VirtualSerialMouse/makefile
+++ b/Demos/Device/ClassDriver/VirtualSerialMouse/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/Incomplete/Sideshow/makefile b/Demos/Device/Incomplete/Sideshow/makefile
index 7b106c806..eee6cf807 100644
--- a/Demos/Device/Incomplete/Sideshow/makefile
+++ b/Demos/Device/Incomplete/Sideshow/makefile
@@ -699,7 +699,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/Incomplete/TestAndMeasurement/makefile b/Demos/Device/Incomplete/TestAndMeasurement/makefile
index d782f6e3c..ff83d8248 100644
--- a/Demos/Device/Incomplete/TestAndMeasurement/makefile
+++ b/Demos/Device/Incomplete/TestAndMeasurement/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/LowLevel/AudioInput/makefile b/Demos/Device/LowLevel/AudioInput/makefile
index 20d0785c6..19be3658e 100644
--- a/Demos/Device/LowLevel/AudioInput/makefile
+++ b/Demos/Device/LowLevel/AudioInput/makefile
@@ -697,7 +697,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/LowLevel/AudioOutput/makefile b/Demos/Device/LowLevel/AudioOutput/makefile
index c28cddf42..604cbf099 100644
--- a/Demos/Device/LowLevel/AudioOutput/makefile
+++ b/Demos/Device/LowLevel/AudioOutput/makefile
@@ -698,7 +698,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/LowLevel/DualVirtualSerial/makefile b/Demos/Device/LowLevel/DualVirtualSerial/makefile
index 4c1a625cb..304085904 100644
--- a/Demos/Device/LowLevel/DualVirtualSerial/makefile
+++ b/Demos/Device/LowLevel/DualVirtualSerial/makefile
@@ -694,7 +694,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/LowLevel/GenericHID/makefile b/Demos/Device/LowLevel/GenericHID/makefile
index cadac8a24..3fb2175e1 100644
--- a/Demos/Device/LowLevel/GenericHID/makefile
+++ b/Demos/Device/LowLevel/GenericHID/makefile
@@ -694,7 +694,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/LowLevel/Joystick/makefile b/Demos/Device/LowLevel/Joystick/makefile
index 2faa07091..b16fc5a02 100644
--- a/Demos/Device/LowLevel/Joystick/makefile
+++ b/Demos/Device/LowLevel/Joystick/makefile
@@ -694,7 +694,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/LowLevel/Keyboard/makefile b/Demos/Device/LowLevel/Keyboard/makefile
index 6cc717b1c..44de3a8cb 100644
--- a/Demos/Device/LowLevel/Keyboard/makefile
+++ b/Demos/Device/LowLevel/Keyboard/makefile
@@ -694,7 +694,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/LowLevel/KeyboardMouse/makefile b/Demos/Device/LowLevel/KeyboardMouse/makefile
index 7bbb9cd36..7a38dfc44 100644
--- a/Demos/Device/LowLevel/KeyboardMouse/makefile
+++ b/Demos/Device/LowLevel/KeyboardMouse/makefile
@@ -694,7 +694,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/LowLevel/MIDI/makefile b/Demos/Device/LowLevel/MIDI/makefile
index 0281d4a5d..140b1050a 100644
--- a/Demos/Device/LowLevel/MIDI/makefile
+++ b/Demos/Device/LowLevel/MIDI/makefile
@@ -694,7 +694,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/LowLevel/MassStorage/makefile b/Demos/Device/LowLevel/MassStorage/makefile
index a6b2f5670..f7fa71530 100644
--- a/Demos/Device/LowLevel/MassStorage/makefile
+++ b/Demos/Device/LowLevel/MassStorage/makefile
@@ -697,7 +697,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/LowLevel/Mouse/makefile b/Demos/Device/LowLevel/Mouse/makefile
index adb6d6be6..5a5dd99e8 100644
--- a/Demos/Device/LowLevel/Mouse/makefile
+++ b/Demos/Device/LowLevel/Mouse/makefile
@@ -694,7 +694,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/LowLevel/RNDISEthernet/makefile b/Demos/Device/LowLevel/RNDISEthernet/makefile
index 99c7e3324..afc5cdcc7 100644
--- a/Demos/Device/LowLevel/RNDISEthernet/makefile
+++ b/Demos/Device/LowLevel/RNDISEthernet/makefile
@@ -713,7 +713,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Device/LowLevel/VirtualSerial/makefile b/Demos/Device/LowLevel/VirtualSerial/makefile
index a5e0230b3..fdef673b4 100644
--- a/Demos/Device/LowLevel/VirtualSerial/makefile
+++ b/Demos/Device/LowLevel/VirtualSerial/makefile
@@ -694,7 +694,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/DualRole/ClassDriver/MouseHostDevice/makefile b/Demos/DualRole/ClassDriver/MouseHostDevice/makefile
index 488b59170..fddf476c7 100644
--- a/Demos/DualRole/ClassDriver/MouseHostDevice/makefile
+++ b/Demos/DualRole/ClassDriver/MouseHostDevice/makefile
@@ -697,7 +697,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/AndroidAccessoryHost/makefile b/Demos/Host/ClassDriver/AndroidAccessoryHost/makefile
index a54879ffc..6aec03541 100644
--- a/Demos/Host/ClassDriver/AndroidAccessoryHost/makefile
+++ b/Demos/Host/ClassDriver/AndroidAccessoryHost/makefile
@@ -693,7 +693,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/AudioInputHost/makefile b/Demos/Host/ClassDriver/AudioInputHost/makefile
index 09283074e..8ba2b734c 100644
--- a/Demos/Host/ClassDriver/AudioInputHost/makefile
+++ b/Demos/Host/ClassDriver/AudioInputHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/AudioOutputHost/makefile b/Demos/Host/ClassDriver/AudioOutputHost/makefile
index 8b3d886a6..1acda4501 100644
--- a/Demos/Host/ClassDriver/AudioOutputHost/makefile
+++ b/Demos/Host/ClassDriver/AudioOutputHost/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/JoystickHostWithParser/makefile b/Demos/Host/ClassDriver/JoystickHostWithParser/makefile
index 8829ab813..1fa6d1355 100644
--- a/Demos/Host/ClassDriver/JoystickHostWithParser/makefile
+++ b/Demos/Host/ClassDriver/JoystickHostWithParser/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/KeyboardHost/makefile b/Demos/Host/ClassDriver/KeyboardHost/makefile
index 854e98d2a..760aad692 100644
--- a/Demos/Host/ClassDriver/KeyboardHost/makefile
+++ b/Demos/Host/ClassDriver/KeyboardHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/KeyboardHostWithParser/makefile b/Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
index be1380201..4a137483f 100644
--- a/Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
+++ b/Demos/Host/ClassDriver/KeyboardHostWithParser/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/MIDIHost/makefile b/Demos/Host/ClassDriver/MIDIHost/makefile
index 371772b9e..b346a2057 100644
--- a/Demos/Host/ClassDriver/MIDIHost/makefile
+++ b/Demos/Host/ClassDriver/MIDIHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/MassStorageHost/makefile b/Demos/Host/ClassDriver/MassStorageHost/makefile
index c3aae340b..9b166caaf 100644
--- a/Demos/Host/ClassDriver/MassStorageHost/makefile
+++ b/Demos/Host/ClassDriver/MassStorageHost/makefile
@@ -693,7 +693,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/MouseHost/makefile b/Demos/Host/ClassDriver/MouseHost/makefile
index 26bb66143..260b6e47b 100644
--- a/Demos/Host/ClassDriver/MouseHost/makefile
+++ b/Demos/Host/ClassDriver/MouseHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/MouseHostWithParser/makefile b/Demos/Host/ClassDriver/MouseHostWithParser/makefile
index b4509c871..cb8da5e95 100644
--- a/Demos/Host/ClassDriver/MouseHostWithParser/makefile
+++ b/Demos/Host/ClassDriver/MouseHostWithParser/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/PrinterHost/makefile b/Demos/Host/ClassDriver/PrinterHost/makefile
index e61f4ef18..63bf5f444 100644
--- a/Demos/Host/ClassDriver/PrinterHost/makefile
+++ b/Demos/Host/ClassDriver/PrinterHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/RNDISEthernetHost/makefile b/Demos/Host/ClassDriver/RNDISEthernetHost/makefile
index 66fff0d92..5c6885265 100644
--- a/Demos/Host/ClassDriver/RNDISEthernetHost/makefile
+++ b/Demos/Host/ClassDriver/RNDISEthernetHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/StillImageHost/makefile b/Demos/Host/ClassDriver/StillImageHost/makefile
index f0d6f3ab1..45b44caf7 100644
--- a/Demos/Host/ClassDriver/StillImageHost/makefile
+++ b/Demos/Host/ClassDriver/StillImageHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/ClassDriver/VirtualSerialHost/makefile b/Demos/Host/ClassDriver/VirtualSerialHost/makefile
index b313f278c..9fa992838 100644
--- a/Demos/Host/ClassDriver/VirtualSerialHost/makefile
+++ b/Demos/Host/ClassDriver/VirtualSerialHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/Incomplete/BluetoothHost/makefile b/Demos/Host/Incomplete/BluetoothHost/makefile
index b6b233971..1b3b479b0 100644
--- a/Demos/Host/Incomplete/BluetoothHost/makefile
+++ b/Demos/Host/Incomplete/BluetoothHost/makefile
@@ -701,7 +701,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/AndroidAccessoryHost/makefile b/Demos/Host/LowLevel/AndroidAccessoryHost/makefile
index 55e6645c7..c4d435a31 100644
--- a/Demos/Host/LowLevel/AndroidAccessoryHost/makefile
+++ b/Demos/Host/LowLevel/AndroidAccessoryHost/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/AudioInputHost/makefile b/Demos/Host/LowLevel/AudioInputHost/makefile
index d19c3b9d2..01764ba1e 100644
--- a/Demos/Host/LowLevel/AudioInputHost/makefile
+++ b/Demos/Host/LowLevel/AudioInputHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/AudioOutputHost/makefile b/Demos/Host/LowLevel/AudioOutputHost/makefile
index c1f16d170..42f7392a6 100644
--- a/Demos/Host/LowLevel/AudioOutputHost/makefile
+++ b/Demos/Host/LowLevel/AudioOutputHost/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/GenericHIDHost/makefile b/Demos/Host/LowLevel/GenericHIDHost/makefile
index 2b5fd3cde..18ef6dbb9 100644
--- a/Demos/Host/LowLevel/GenericHIDHost/makefile
+++ b/Demos/Host/LowLevel/GenericHIDHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/JoystickHostWithParser/makefile b/Demos/Host/LowLevel/JoystickHostWithParser/makefile
index ad4717d83..3775eb00d 100644
--- a/Demos/Host/LowLevel/JoystickHostWithParser/makefile
+++ b/Demos/Host/LowLevel/JoystickHostWithParser/makefile
@@ -693,7 +693,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/KeyboardHost/makefile b/Demos/Host/LowLevel/KeyboardHost/makefile
index f2e6ac306..f5eb441e7 100644
--- a/Demos/Host/LowLevel/KeyboardHost/makefile
+++ b/Demos/Host/LowLevel/KeyboardHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/KeyboardHostWithParser/makefile b/Demos/Host/LowLevel/KeyboardHostWithParser/makefile
index c33b9297c..63ada8b5c 100644
--- a/Demos/Host/LowLevel/KeyboardHostWithParser/makefile
+++ b/Demos/Host/LowLevel/KeyboardHostWithParser/makefile
@@ -693,7 +693,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/MIDIHost/makefile b/Demos/Host/LowLevel/MIDIHost/makefile
index 3daa0cec4..5881bace1 100644
--- a/Demos/Host/LowLevel/MIDIHost/makefile
+++ b/Demos/Host/LowLevel/MIDIHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/MassStorageHost/makefile b/Demos/Host/LowLevel/MassStorageHost/makefile
index da4bb76ba..c4860611a 100644
--- a/Demos/Host/LowLevel/MassStorageHost/makefile
+++ b/Demos/Host/LowLevel/MassStorageHost/makefile
@@ -694,7 +694,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/MouseHost/makefile b/Demos/Host/LowLevel/MouseHost/makefile
index 9e7fc90cc..8b3706476 100644
--- a/Demos/Host/LowLevel/MouseHost/makefile
+++ b/Demos/Host/LowLevel/MouseHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/MouseHostWithParser/makefile b/Demos/Host/LowLevel/MouseHostWithParser/makefile
index 46d2fadfc..c5df80e31 100644
--- a/Demos/Host/LowLevel/MouseHostWithParser/makefile
+++ b/Demos/Host/LowLevel/MouseHostWithParser/makefile
@@ -693,7 +693,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/PrinterHost/makefile b/Demos/Host/LowLevel/PrinterHost/makefile
index c30fb650a..42b7a77b0 100644
--- a/Demos/Host/LowLevel/PrinterHost/makefile
+++ b/Demos/Host/LowLevel/PrinterHost/makefile
@@ -693,7 +693,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/RNDISEthernetHost/makefile b/Demos/Host/LowLevel/RNDISEthernetHost/makefile
index d640a4053..0830199ff 100644
--- a/Demos/Host/LowLevel/RNDISEthernetHost/makefile
+++ b/Demos/Host/LowLevel/RNDISEthernetHost/makefile
@@ -693,7 +693,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/StillImageHost/makefile b/Demos/Host/LowLevel/StillImageHost/makefile
index 9aabddd4e..09e3f59c8 100644
--- a/Demos/Host/LowLevel/StillImageHost/makefile
+++ b/Demos/Host/LowLevel/StillImageHost/makefile
@@ -693,7 +693,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Demos/Host/LowLevel/VirtualSerialHost/makefile b/Demos/Host/LowLevel/VirtualSerialHost/makefile
index 2daa5ea99..21e94637d 100644
--- a/Demos/Host/LowLevel/VirtualSerialHost/makefile
+++ b/Demos/Host/LowLevel/VirtualSerialHost/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/LUFA/CodeTemplates/makefile_template.avr8 b/LUFA/CodeTemplates/makefile_template.avr8
index 7fd19390b..7f8534a3b 100644
--- a/LUFA/CodeTemplates/makefile_template.avr8
+++ b/LUFA/CodeTemplates/makefile_template.avr8
@@ -683,7 +683,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/LUFA/CodeTemplates/makefile_template.uc3 b/LUFA/CodeTemplates/makefile_template.uc3
index 647a956c8..78fd9f69c 100644
--- a/LUFA/CodeTemplates/makefile_template.uc3
+++ b/LUFA/CodeTemplates/makefile_template.uc3
@@ -456,7 +456,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/LUFA/CodeTemplates/makefile_template.xmega b/LUFA/CodeTemplates/makefile_template.xmega
index 3c09effca..8c0f0db6c 100644
--- a/LUFA/CodeTemplates/makefile_template.xmega
+++ b/LUFA/CodeTemplates/makefile_template.xmega
@@ -675,7 +675,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/LUFA/makefile b/LUFA/makefile
index bfe9b8a04..9e68d3cb3 100644
--- a/LUFA/makefile
+++ b/LUFA/makefile
@@ -77,7 +77,11 @@ ifeq ($(origin LUFA_PATH), undefined)
 
    doxygen:
 	@echo Generating LUFA Library Documentation...
-	( cat Doxygen.conf ; echo "PROJECT_NUMBER=`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`" ) | doxygen -
+
+	@if ( ( cat Doxygen.conf ; echo "PROJECT_NUMBER=`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`" ) | doxygen - 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
+
 	@echo Documentation Generation Complete.
 
    clean_doxygen:
diff --git a/Projects/AVRISP-MKII/makefile b/Projects/AVRISP-MKII/makefile
index 475ec7146..d83fe1d64 100644
--- a/Projects/AVRISP-MKII/makefile
+++ b/Projects/AVRISP-MKII/makefile
@@ -724,7 +724,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/Benito/makefile b/Projects/Benito/makefile
index d1955e380..eb8b9a34a 100644
--- a/Projects/Benito/makefile
+++ b/Projects/Benito/makefile
@@ -706,7 +706,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/HIDReportViewer/makefile b/Projects/HIDReportViewer/makefile
index a39e93337..e4e0193ae 100644
--- a/Projects/HIDReportViewer/makefile
+++ b/Projects/HIDReportViewer/makefile
@@ -692,7 +692,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/Incomplete/StandaloneProgrammer/makefile b/Projects/Incomplete/StandaloneProgrammer/makefile
index f56969701..6b9b763c2 100644
--- a/Projects/Incomplete/StandaloneProgrammer/makefile
+++ b/Projects/Incomplete/StandaloneProgrammer/makefile
@@ -706,7 +706,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/LEDNotifier/makefile b/Projects/LEDNotifier/makefile
index 6abe713f1..cde0b4e24 100644
--- a/Projects/LEDNotifier/makefile
+++ b/Projects/LEDNotifier/makefile
@@ -697,7 +697,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/MIDIToneGenerator/makefile b/Projects/MIDIToneGenerator/makefile
index 768b61253..60963e49c 100644
--- a/Projects/MIDIToneGenerator/makefile
+++ b/Projects/MIDIToneGenerator/makefile
@@ -697,7 +697,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/Magstripe/makefile b/Projects/Magstripe/makefile
index 22442bcf8..9184d9109 100644
--- a/Projects/Magstripe/makefile
+++ b/Projects/Magstripe/makefile
@@ -709,7 +709,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/MediaController/makefile b/Projects/MediaController/makefile
index 9efa473d9..98eeb5b3b 100644
--- a/Projects/MediaController/makefile
+++ b/Projects/MediaController/makefile
@@ -695,7 +695,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/MissileLauncher/makefile b/Projects/MissileLauncher/makefile
index 45f438a37..3de086271 100644
--- a/Projects/MissileLauncher/makefile
+++ b/Projects/MissileLauncher/makefile
@@ -693,7 +693,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/RelayBoard/makefile b/Projects/RelayBoard/makefile
index 1ea3902ac..5ff62f98d 100644
--- a/Projects/RelayBoard/makefile
+++ b/Projects/RelayBoard/makefile
@@ -697,7 +697,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/TempDataLogger/makefile b/Projects/TempDataLogger/makefile
index d0917fb42..f79398af9 100644
--- a/Projects/TempDataLogger/makefile
+++ b/Projects/TempDataLogger/makefile
@@ -706,7 +706,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/USBtoSerial/makefile b/Projects/USBtoSerial/makefile
index ed2b825f8..64f625da6 100644
--- a/Projects/USBtoSerial/makefile
+++ b/Projects/USBtoSerial/makefile
@@ -698,7 +698,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/Webserver/makefile b/Projects/Webserver/makefile
index a8724412e..7866604e1 100644
--- a/Projects/Webserver/makefile
+++ b/Projects/Webserver/makefile
@@ -736,7 +736,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
diff --git a/Projects/XPLAINBridge/makefile b/Projects/XPLAINBridge/makefile
index 28e47eb79..c6de2769f 100644
--- a/Projects/XPLAINBridge/makefile
+++ b/Projects/XPLAINBridge/makefile
@@ -723,7 +723,9 @@ clean_list :
 
 doxygen:
 	@echo Generating Project Documentation \($(TARGET)\)...
-	@doxygen Doxygen.conf
+	@if ( doxygen Doxygen.conf 2>&1 | grep "warning" ;); then \
+	  exit 1; \
+	fi;
 	@echo Documentation Generation Complete.
 
 clean_doxygen:
-- 
GitLab