From ccc4730b6590c6ecfefc3a15c9219ef51b2c15ff Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 10 Apr 2025 18:17:53 -0300 Subject: Makefile: Add "check-unit-updatedat" target --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d80a6d8..e7318c2 100644 --- a/Makefile +++ b/Makefile @@ -289,6 +289,15 @@ check-unit-sorting: src/sort-expected.txt src/sort-given.txt diff -U10 src/sort-expected.txt src/sort-given.txt +.SUFFIXES: .updatedat-check +sources.updatedat-check = $(sources.adoc:.adoc=.updatedat-check) +$(sources.updatedat-check): + . ./$*.conf && if [ -n "$$updatedat_epoch" ] && \ + [ "$$updatedat_epoch" -le "$$date_epoch" ]; then exit 3; fi + +check-unit-updatedat: $(sources.updatedat-check) + + .SUFFIXES: .links-internal-check sources.links-internal-check = $(sources.adoc:.adoc=.links-internal-check) $(sources.links-internal-check): $(sources.html) @@ -302,7 +311,7 @@ check-unit-links-external: check-unit-links: check-unit-links-internal check-unit-links-external -check-unit: check-unit-sorting check-unit-links +check-unit: check-unit-sorting check-unit-updatedat check-unit-links integration-tests = \ -- cgit v1.2.3