X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/8de8d7ab5a280ed9fc062c4bbc0f43350de1f383..0424bd4dbc8a6a22310e4081d2d5dc852a92ea4c:/Maintenance/makefile diff --git a/Maintenance/makefile b/Maintenance/makefile index d7230781d..5cce2bf1c 100644 --- a/Maintenance/makefile +++ b/Maintenance/makefile @@ -6,7 +6,7 @@ # www.lufa-lib.org # -# Maintenance scripts not required by general LUFA users, used for development. +# Maintenance scripts not required by general LUFA users, used for project development purposes. LUFA_ROOT = ../ @@ -23,12 +23,6 @@ upgrade-doxygen: done; @echo Doxygen configuration update complete. -# Validate the working branch - compile all documentation, demos/projects/examples and run build tests -validate-branch: - make -s -C $(LUFA_ROOT) doxygen - make -s -C $(LUFA_ROOT) all - make -s -C $(LUFA_ROOT)/BuildTests all - # Check the working branch documentation, ensure no placeholder values check-documentation-placeholders: @echo Checking for release suitability... @@ -42,5 +36,18 @@ check-documentation-placeholders: fi; @echo Done. +# Test all generated documentation for any bad links +check-documentation-links: + @for html_file in `find $(LUFA_ROOT) -name *.html`; do \ + echo Checking $$html_file...; \ + cat $$html_file | grep -v "doxygen.org" | grep -v "fourwalledcubicle.com" | wget -nv --referer=www.lufa-lib.org --user-agent="lufa-link-check-script" -B $(dir $$html_file) --spider --force-html --input-file=-; \ + done; + +# Validate the working branch - compile all documentation, demos/projects/examples and run build tests +validate-branch: + make -s -C $(LUFA_ROOT) doxygen + make -s -C $(LUFA_ROOT) all + make -s -C $(LUFA_ROOT)/BuildTests all + # Validate the working branch for general release, check for placeholder documentation then build and test everything -validate-release: check-documentation-placeholders validate-branch \ No newline at end of file +validate-release: check-documentation-placeholders validate-branch