File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1414PKG_NAME =doxygen
1515PKG_LICENSE =GPL-2.0
1616
17+ RIOTTOOLS =$(CURDIR ) /..
18+ DLCACHE =$(RIOTTOOLS ) /dlcache/dlcache.sh
19+
1720# optionally add the "clean" target to delete the binary and force a rebuild
1821REBUILD =
1922
@@ -77,7 +80,7 @@ $(CURDIR)/doxygen: $(REBUILD)
7780
7881download_binary : distclean
7982 @echo " [INFO] Downloading Doxygen binary..."
80- @wget -q -O $(CURDIR ) /$(BIN_PKG_TAR ) $(BIN_PKG_DOWNLOAD_URL ) || \
83+ @$( DLCACHE ) $(CURDIR ) /$(BIN_PKG_TAR ) $(BIN_PKG_DOWNLOAD_URL ) $( PKG_SHA512 ) || \
8184 { echo " [ERROR] Failed to download binary" ; exit 1; }
8285 @echo " [INFO] Unpacking Doxygen..."
8386 @tar -xf $(CURDIR ) /$(BIN_PKG_TAR )
Original file line number Diff line number Diff line change 2424# Check that the doxygen version is not too old to avoid
2525# certain bugs that were fixed in later revisions. Especially
2626# Debian-based distributions tend to have very old versions.
27+ # When updating the version, make sure to update the SHA512 checksum
28+ # of the doxygen-x.xx.x.linux.bin.tar.gz archive accordingly to avoid cache
29+ # misses.
2730DOXYGEN_MIN_VERSION = 1.15.0
31+ DOXYGEN_TGZ_SHA512 = 0e99fb9a65f9fada2fe90ea0d1f940b8e58d62801f880614b440b9f3a9f82a5c1a8dd1d0719ee6a46f9612ea7447655d5c8494f63463fe7f1222987bdb1485a9
2832
2933# Set the Doxygen binary if not already set
3034DOXYGEN ?= doxygen
@@ -69,7 +73,7 @@ graphviz-check:
6973
7074.PHONY : doc-ci
7175doc-ci : $(RIOTTOOLS ) /doxygen/Makefile
72- @PKG_VERSION=$(DOXYGEN_VERSION ) $(MAKE ) -C $(RIOTTOOLS ) /doxygen all --no-print-directory
76+ @PKG_VERSION=$(DOXYGEN_VERSION ) PKG_SHA512= $( DOXYGEN_TGZ_SHA512 ) $(MAKE ) -C $(RIOTTOOLS ) /doxygen all --no-print-directory
7377 @$(MAKE ) -BC $(CURDIR ) DOXYGEN=$(RIOTTOOLS ) /doxygen/doxygen doc
7478
7579# by marking html as phony we force make to re-run Doxygen even if the directory exists.
You can’t perform that action at this time.
0 commit comments