diff options
author | EuAndreh <eu@euandre.org> | 2025-04-10 18:17:53 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-04-10 18:17:53 -0300 |
commit | ccc4730b6590c6ecfefc3a15c9219ef51b2c15ff (patch) | |
tree | 6f2a9cceb7aa8333047dbaf8e1ebe12790b04fd7 /Makefile | |
parent | Makefile: Normalize unit test target names (diff) | |
download | euandre.org-ccc4730b6590c6ecfefc3a15c9219ef51b2c15ff.tar.gz euandre.org-ccc4730b6590c6ecfefc3a15c9219ef51b2c15ff.tar.xz |
Makefile: Add "check-unit-updatedat" target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 = \ |