Skip to content

Commit 8446315

Browse files
committed
dist/tools/doxygen: use dlcache for Doxygen download
1 parent 5051b32 commit 8446315

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

dist/tools/doxygen/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
PKG_NAME=doxygen
1515
PKG_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
1821
REBUILD=
1922

@@ -77,7 +80,7 @@ $(CURDIR)/doxygen: $(REBUILD)
7780

7881
download_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)

doc/doxygen/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ endif
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.
2730
DOXYGEN_MIN_VERSION = 1.15.0
31+
DOXYGEN_TGZ_SHA512 = 0e99fb9a65f9fada2fe90ea0d1f940b8e58d62801f880614b440b9f3a9f82a5c1a8dd1d0719ee6a46f9612ea7447655d5c8494f63463fe7f1222987bdb1485a9
2832

2933
# Set the Doxygen binary if not already set
3034
DOXYGEN ?= doxygen
@@ -69,7 +73,7 @@ graphviz-check:
6973

7074
.PHONY: doc-ci
7175
doc-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.

0 commit comments

Comments
 (0)