X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/24ff863f027f9bb6089aebac6bcd0d24148feb36..51d3adfe1869e4a45c8368bb00a485be052eecdb:/Maintenance/makefile?ds=inline diff --git a/Maintenance/makefile b/Maintenance/makefile index 8363fbed9..49b6adb58 100644 --- a/Maintenance/makefile +++ b/Maintenance/makefile @@ -1,6 +1,6 @@ # # LUFA Library -# Copyright (C) Dean Camera, 2013. +# Copyright (C) Dean Camera, 2016. # # dean [at] fourwalledcubicle [dot] com # www.lufa-lib.org @@ -16,21 +16,21 @@ all: # Print a list of all filenames and line numbers that exceed an allowed threshold line-lengths: - awk '{ if (length > 150) { print FILENAME, ":", FNR, "[", length, "]" } }' `find $(LUFA_ROOT) -name *.[ch]` + awk '{ if (length > 120) { print FILENAME, ":", FNR, "[", length, "]" } }' `find $(LUFA_ROOT) -name *.[ch]` # Generate a header containing all library functions function-list: $(MAKE) -C $(patsubst %/,%,$(LUFA_ROOT))/LUFA doxygen DOXYGEN_OVERRIDE_PARAMS="GENERATE_HTML=no GENERATE_XML=yes" @xsltproc $(patsubst %/,%,$(LUFA_ROOT))/LUFA/Documentation/xml/combine.xslt $(patsubst %/,%,$(LUFA_ROOT))/LUFA/Documentation/xml/index.xml > temp.xml @xsltproc lufa_functionlist_transform.xslt temp.xml > function_list.h - @cat function_list.h | sort | uniq > function_list_unique.h + @sort function_list.h | uniq > function_list_unique.h @rm temp.xml -# Update all Doxygen configuration files to the latest Doxygen version - force Markdown support to be disabled +# Update all Doxygen configuration files to the latest Doxygen version upgrade-doxygen: - @echo Upgrading Doxygen.conf files... - @for doxygen_conf in `find $(LUFA_ROOT) -name Doxygen.conf`; do \ - doxygen -u $$doxygen_conf; \ + @echo Upgrading Doxygen files... + @for doxygen_conf in `find $(LUFA_ROOT) -name doxyfile`; do \ + doxygen -u $$doxygen_conf; \ done; @echo Doxygen configuration update complete. @@ -71,12 +71,12 @@ bootloaders: # Check the working branch documentation, ensure no placeholder values check-documentation-placeholders: @echo Checking for release suitability... - @if ( grep "XXXXXX" $(patsubst %/,%,$(LUFA_ROOT))/LUFA/DoxygenPages/*.txt > /dev/null ;); then \ - echo " ERROR: Doxygen documentation has not been updated for release!"; \ + @if ( grep " LUFA_VERSION_RELEASE_TYPE " $(patsubst %/,%,$(LUFA_ROOT))/LUFA/Version.h | grep "LUFA_VERSION_RELEASE_TYPE_DEVELOPMENT" > /dev/null ;); then \ + echo " ERROR: Version header has not been updated for release!"; \ exit 1; \ fi; - @if ( grep "000000" $(patsubst %/,%,$(LUFA_ROOT))/LUFA/Version.h > /dev/null ;); then \ - echo " ERROR: Version header has not been updated for release!"; \ + @if ( grep "XXXXXX" $(patsubst %/,%,$(LUFA_ROOT))/LUFA/DoxygenPages/*.txt > /dev/null ;); then \ + echo " ERROR: Doxygen documentation has not been updated for release!"; \ exit 1; \ fi; @echo Done.