X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/2413d114b702f23427fe7cffc7e1529693e50e01..e9bf4bc84e66fa86d804ad1dbdede9bbd83c7a44:/Maintenance/makefile diff --git a/Maintenance/makefile b/Maintenance/makefile index 9fe1b6a0e..974fa91c8 100644 --- a/Maintenance/makefile +++ b/Maintenance/makefile @@ -14,6 +14,18 @@ LUFA_ROOT := ../ all: +# Print a list of all filenames and line numbers that exceed an allowed threshold +line-lengths: + 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 + @rm temp.xml + # Update all Doxygen configuration files to the latest Doxygen version - force Markdown support to be disabled upgrade-doxygen: @echo Upgrading Doxygen.conf files... @@ -24,7 +36,7 @@ upgrade-doxygen: # Make all possible bootloaders for all targets and configurations as set by the BootloaderTest build test # and store them in a separate directory called "Bootloaders" -make_bootloaders: +bootloaders: @echo "build_bootloaders:" > BuildMakefile @printf "\t-mkdir Bootloaders 2>/dev/null\n\n" >> BuildMakefile @@ -79,4 +91,4 @@ validate-branch: validate-release: check-documentation-placeholders validate-branch -.PHONY: all upgrade-doxygen make_bootloaders check-documentation-placeholders validate-branch \ No newline at end of file +.PHONY: all upgrade-doxygen bootloaders check-documentation-placeholders validate-branch