diff --git a/Makefile b/Makefile index 9502c989..82a774a5 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,11 @@ A2XM=a2x -f manpage --no-xmllint -a encoding=UTF-8 A2XH=a2x -f xhtml --no-xmllint -a encoding=UTF-8 +# Create cross-links in html man pages +# We look for something like "cdist-type(7)" and make a href out of it +# The first matching group is the man page name and the second group +# is the man page section (1 or 7) +CROSSLINK=sed --in-place 's/\([[:alnum:]_-]*\)(\([17]\))/&<\/a>/' helper=./bin/build-helper MANDIR=docs/man @@ -86,6 +91,7 @@ MANSTATICALL=$(MANSTATICMAN) $(MANSTATICHTML) # Creating the type html page %.html: %.text $(A2XH) $^ + $(CROSSLINK) $^ man: $(MANTYPEALL) $(MANREFALL) $(MANSTATICALL)