3 #     Copyright (C) Dean Camera, 2011.
 
   5 #  dean [at] fourwalledcubicle [dot] com
 
   9 # Maintenance scripts not required by general LUFA users, used for project development purposes.
 
  12 # Path to the root of the LUFA tree
 
  17 # Update all Doxygen configuration files to the latest Doxygen version - force Markdown support to be disabled
 
  19         @echo Upgrading Doxygen.conf files...
 
  20         @for doxygen_conf in `find $(LUFA_ROOT) -name Doxygen.conf`; do \
 
  21           doxygen -u $$doxygen_conf; \
 
  22           sed "s/MARKDOWN_SUPPORT *= *YES/MARKDOWN_SUPPORT       = NO/1" $$doxygen_conf > $$doxygen_conf.new; \
 
  23           mv -u $$doxygen_conf.new $$doxygen_conf; \
 
  25         @echo Doxygen configuration update complete.
 
  27 # Check the working branch documentation, ensure no placeholder values
 
  28 check-documentation-placeholders:
 
  29         @echo Checking for release suitability...
 
  30         @if ( grep "XXXXXX" $(LUFA_ROOT)/LUFA/DoxygenPages/*.txt > /dev/null ;); then \
 
  31           echo "  ERROR: Doxygen documentation has not been updated for release!"; \
 
  34         @if ( grep "000000" $(LUFA_ROOT)/LUFA/Version.h > /dev/null ;); then \
 
  35           echo "  ERROR: Version header has not been updated for release!"; \
 
  40 # Validate the working branch - compile all documentation, demos/projects/examples and run build tests
 
  42         make -s -C $(LUFA_ROOT) doxygen
 
  43         make -s -C $(LUFA_ROOT) all     
 
  44         make -s -C $(LUFA_ROOT)/BuildTests all
 
  46 # Validate the working branch for general release, check for placeholder documentation then build and test everything
 
  47 validate-release: check-documentation-placeholders validate-branch