summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d15e5aa..37eaa73 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ PUBURL = public.asc
.SUFFIXES:
.SUFFIXES: .adoc .conf .snippets .indexentry .feedentry .sortdata .xml
-.SUFFIXES: .htmlbody .htmlheader .htmlfooter .htmllisting .html
+.SUFFIXES: .htmlbody .htmlheader .htmlfooter .htmllisting .html .links
.SUFFIXES: .gz
.adoc.conf:
@@ -58,6 +58,9 @@ PUBURL = public.asc
.conf.sortdata:
mkwb sortdata $< > $@
+.adoc.links:
+ mkwb links $< > $@
+
all:
@@ -70,6 +73,7 @@ sources.html = $(sources.adoc:.adoc=.html)
sources.snippets = $(sources.adoc:.adoc=.snippets)
sources.snippets.gz = $(sources.adoc:.adoc=.snippets.gz)
sources.conf = $(sources.adoc:.adoc=.conf)
+sources.links = $(sources.adoc:.adoc=.links)
articles.indexentry = $(articles.adoc:.adoc=.indexentry)
articles.feedentry = $(articles.adoc:.adoc=.feedentry)
articles.sortdata = $(articles.adoc:.adoc=.sortdata)
@@ -132,6 +136,7 @@ derived-assets = \
$(sources.htmlbody) \
$(sources.snippets) \
$(sources.snippets.gz) \
+ $(sources.links) \
$(sources.conf) \
src/dyn.conf \
src/base.conf \
@@ -259,7 +264,20 @@ sources.txt install.txt:
-check-unit:
+.SUFFIXES: .links-check-internal
+sources.links-check-internal = $(sources.adoc:.adoc=.links-check-internal)
+$(sources.links-check-internal): $(sources.html)
+ grep '^link:' $*.links | cut -d: -f2- | xargs -tI% test -e $(*D)/%
+
+check-internal: $(sources.links-check-internal)
+
+
+check-external:
+
+
+check-links: check-internal check-external
+
+check-unit: check-links
integration-tests = \