summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-10 18:17:53 -0300
committerEuAndreh <eu@euandre.org>2025-04-10 18:17:53 -0300
commitccc4730b6590c6ecfefc3a15c9219ef51b2c15ff (patch)
tree6f2a9cceb7aa8333047dbaf8e1ebe12790b04fd7 /Makefile
parentMakefile: Normalize unit test target names (diff)
downloadeuandre.org-ccc4730b6590c6ecfefc3a15c9219ef51b2c15ff.tar.gz
euandre.org-ccc4730b6590c6ecfefc3a15c9219ef51b2c15ff.tar.xz
Makefile: Add "check-unit-updatedat" target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
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 = \